Adaptive Card Markdown not working.
See original GitHub issueHi, I am creating an adaptive card with this code
var ac = new AdaptiveCards.AdaptiveCard()
{
Body = new List<AdaptiveCards.AdaptiveElement>()
{
new AdaptiveCards.AdaptiveTextBlock()
{
Text = "**Hello ** world to [adaptivecards](https://wwww.adaptivecards.io)"
}
}
};
var message = context.MakeMessage();
message.Attachments.Add(new Attachment() { ContentType = AdaptiveCard.ContentType, Content = ac });
await context.PostAsync(message);
The output produced (in Webchat) is
According to Adaptive card website markdown is supported.
More Info : Adaptive card version : 1.0 WebChat version : 0.12.1-pre
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Text formatting in cards - Teams
Adaptive Cards: Markdown is supported in Adaptive Card Textblock field, and Fact.Title and Fact.Value . HTML isn't supported in Adaptive Cards.
Read more >Text Format in Adaptive Card on Teams
Basically, what you're doing trying to mark up the formatting with an underscore ("_") is using 'markdown' formatting.
Read more >TextRun
Text to display. Markdown is not supported. 1.2. color, Colors? No, Controls the color of the text. 1.2.
Read more >support markdown in adaptive card
i use an adaptivecard with input.choiseset and i used markdown formatting to put a link inside the "title" of the choices.
Read more >adaptivecards
Markdown is a standard feature of Adaptive Cards, but to give users flexibility we don't bundle a particular implementation with the library.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am currently using custom implementation of webchat forked from here
It already includes the markdown-it, so I would have to update the webchat itself for it to work. Since, webchat already includes markdown-it, I dont understand why it the rendering skipped? It wont effect the bundle size. Also, this mean that the documentation on Microsoft website is invalid as of now.
This is actually a breaking change, for which I found no post. This should be known to end user.
@Kartik1607 one way to build a constructive conversation is look on the existing issues like https://github.com/Microsoft/AdaptiveCards/issues/1652 and taking it from what’s already in discussion. Just saying.