question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adaptive Card Markdown not working.

See original GitHub issue

Hi, 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 output

According to Adaptive card website markdown is supported.

More Info : Adaptive card version : 1.0 WebChat version : 0.12.1-pre

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Kartik1607commented, May 3, 2018

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.

0reactions
ignacionrcommented, Jul 5, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found