将 HTML 锚标签绑定到文本块自适应卡片

Bind HTML anchor tag to text block adaptive card

我想在显示卡片时向自适应文本块添加一个 HTML 锚标记。我正在使用机器人框架 v3.0。下面是我用来添加文本块的代码。

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

请推荐....

Adaptive Card text supports a subset of Markdown. 您可以使用 Markdown 风格的超链接:[Title](url)

仅供参考 Kyle 的回答 - link 必须 完全 遵循降价语法。例如:

card.Body.Add(new AdaptiveTextBlock()
{
    Text = "[The Text for the link](https://thelink.goeshere.com)",
    Size = AdaptiveTextSize.Default,
    Weight = AdaptiveTextWeight.Default,
    Wrap = true,
});