Botframework-webchat: Markdown rendering not working in hero cards

Created on 20 Apr 2018  路  12Comments  路  Source: microsoft/BotFramework-WebChat

I have some markdown in my

content.text

property of the hero card, but the rendering doesn't seem to work... I don't know if this is an issue with the WebChat or AdaptiveCards as a whole

Most helpful comment

No :( It seems that AdaptiveCards library stopped accepting Markdowns. I hope it is a bug and not a feature...

All 12 comments

Which version of WebChat are you using? I had similar issues with v0.12.1 but it's working fine again with the latest version (see https://cdn.botframework.com/botframework-webchat/latest/botchat.js)

I'm using the current version built from code. I also tried botchattest

@Alaiven same issue

What version is used in the latest CDN?

Adaptive Cards with Markdown Url not rendering too.
I have build a fresh v0.12.1 version and with no luck.

I am working on a customized version, so the CDN version is useless for me.

Do I need to include the markdown-it to my web page?

Can anyone confirm that this is a bug and maybe propose a solution?

I'm attaching a screenshot from the current botchattest, where you can see one of my bots displaying a Hero Card with some buttons. Markdown is not being rendered.

markdown

Hi there,

I do have the same issue. I downloaded the 0.13.1 version and compiled it and use the botchat.js in a HTML-Page for the "Web Chat"

Any idea how can I fix the issue?

-->When I use the CDN Markdown is OK

image

Here is the same page with CDN botchat.js

image

@arashberlin Unfortunately, I'm working on a custom version of the client, so I can't use the CDN.

@alavien:
Me too. I do have the problem when I build the code for the custom edition. Do you find any solution?

No :( It seems that AdaptiveCards library stopped accepting Markdowns. I hope it is a bug and not a feature...

found a solution here. It was deep in some posts. You need to add the markdown-it.js before your custom botchat.js

related also to 972

I don't know how to enable it in the emulator. In the Web Chat the rendering is now correct.

Note to fixer: in order to use Markdown in Adaptive Cards, user need to load markdown-it.js.

Will fix in PR #1034.

Web Chat 0.14.1 is out with the fix #1034.

Was this page helpful?
0 / 5 - 0 ratings