我想在显示卡片时向自适应文本块添加HTML锚标记。我正在使用Bot Framework v3.0。下面是我用来添加文本块的代码。
card.Body.Add(new AdaptiveTextBlock()
{
Text = text with anchor tag,
Size = AdaptiveTextSize.Default,
Weight = AdaptiveTextWeight.Default,
Wrap = true,
});
请提出建议。...
答案 0 :(得分:0)
Adaptive Card text supports a subset of Markdown.您可以使用Markdown样式的超链接:[Title](url)
答案 1 :(得分:0)
只是Kyle回答的答案-链接必须完全遵循markdown语法。例如:
card.Body.Add(new AdaptiveTextBlock()
{
Text = "[The Text for the link](https://thelink.goeshere.com)",
Size = AdaptiveTextSize.Default,
Weight = AdaptiveTextWeight.Default,
Wrap = true,
});