Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Herocards, Thumbnail cards are not markdown compliant #356

Closed
stephaneey opened this issue Mar 4, 2017 · 7 comments

Comments

@stephaneey
Copy link

@stephaneey stephaneey commented Mar 4, 2017

Hi,

As indicated in the title, these objects are not markdown compliant which makes them unsuable with text content. Any clue whether markdown language will be supported?

Thanks

@billba

This comment has been minimized.

Copy link
Member

@billba billba commented Mar 4, 2017

Every message (including those with Hero and Thumbnail card attachments) can use markdown in the text field. However the other text fields in Hero and Thumbnail cards, e.g. title,subtitle, do not. This is correct behavior, as these cards are meant to be compatible with Facebook, Slack, etc., where Markdown is also not allowed in those fields.

In the end this is an issue with the Activity spec from the Bot Framework, and not with WebChat, which has implemented the Activity spec correctly. As a result I am closing this issue but feel free to add a comment if I have misunderstood your concern.

@billba billba closed this Mar 4, 2017
@billba billba reopened this Mar 4, 2017
@stephaneey

This comment has been minimized.

Copy link
Author

@stephaneey stephaneey commented Mar 4, 2017

Well, I'm referring to this https://blogs.msdn.microsoft.com/jamiedalton/2016/08/22/bot-framework-markdown-support-by-channel/. So markdown is used to have rich text. While it works fine with regular text messages, it's totally ignored by thumbnail & herocards which make them unusable to show text content. To give a concrete example, if you want to show in a herocard's subtitle attribute something like this:

  1. do this
  2. do that

it will show up as 1. do this2.do that. which is uggly and not presentable. Same if you want to mark a word in bold etc.

@billba

This comment has been minimized.

Copy link
Member

@billba billba commented Mar 4, 2017

I think it's hyperbolic to call them "unusable" since many bots happily use Hero and Thumbnail cards. However it sounds like, for your application, you require Markdown in the various text fields of those cards. Unfortunately this is not supported by the underlying framework, nor in other channels.

@billba billba closed this Mar 4, 2017
@stephaneey

This comment has been minimized.

Copy link
Author

@stephaneey stephaneey commented Mar 4, 2017

that's why I said "unusable to present text content". In my scenario I had to return several KB articles (short ones) in a carousel but of course, for that kind of requirements, this is indeed unusable. If you think of exposing the webchat to a mobile device, just putting links all the time isn't a great user experience, showing the few first lines of text (well formated) is much better but clearly, not ok "as is". Also, sorry but saying markdown is supported by the webchat channel is a bit abusive as it is only partially supported.

@billba

This comment has been minimized.

Copy link
Member

@billba billba commented Mar 4, 2017

Yes, if you require presenting rich text in cards, you will not be able to accomplish that using bots today with ours or any other framework/channel. However it's reasonable to expect that over time channels will become richer in capability, and that the Bot Framework and WebChat will follow their lead.

@stephaneey

This comment has been minimized.

Copy link
Author

@stephaneey stephaneey commented Mar 4, 2017

ok a bit disappointing but thanks for your fast answer 👍

@Laul0

This comment has been minimized.

Copy link

@Laul0 Laul0 commented Apr 10, 2019

Some years after... I was in the same case than you… I wrote a little post about that and a solution to display MD into this kind of Card: Display Markdown to your Bot Framework Hero and Thumbnail Cards 💡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.