Search code examples
c#htmlbotframeworkmicrosoft-teamsadaptive-cards

Bind HTML anchor tag to text block adaptive card


I want to add a HTML anchor tag to adaptive text block while showing the card. i'm using bot framework v3.0. Below is the code i'm using to add text block.

card.Body.Add(new AdaptiveTextBlock()
{
    Text = text with anchor tag,
    Size = AdaptiveTextSize.Default,
    Weight = AdaptiveTextWeight.Default,
    Wrap = true,
}); 

Please suggest....


Solution

  • Adaptive Card text supports a subset of Markdown. You can use Markdown-style hyperlinks: [Title](url)