AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Ms Teams][Adaptive card not supporting most of the github text style format]

Open priyakewlani18 opened this issue 6 years ago • 4 comments

Platform

What platform is your issue or question related to? (Delete other platforms).

MsTeams

Author or host

Author

If you're an author, who are you sending cards to? MsTeams

Version of SDK

NA What version are you using? Ex: NuGet 1.0.2, or latest main, etc...

Details

We are using adaptive card to post github issue/pr notifications to teams channel. As github issue/pr description support most of the text style while adaptive card text block is supporting only Bold, Italic , unordered and ordered list and all other style format looking weird in teams channel.

Feature GitHub Support Adaptive Card Teams Support Notes
Header Supported Not Supported Header will appear as it is "#".
Check list Supported Not Supported Checkbox will appear as it is [],[x] .
Bold Supported Supported
Italic Supported Supported
Block quote Supported Not Supported block quote will appear as it is ">".
Code Supported Not Supported code will appear as it is `` .
Hyperlink Supported Supported Hyperlink is supported , but link/url is not supported and will appear as plain text.
Unordered list Supported Supported
Ordered list Supported Supported
At sign "@" Supported Not Supported at sign will appear as plain text.
Reference Supported Not Supported references will appear as plain text.
Table Supported Not Supported Table content will be shown without proper spacing and table borders.
HTML Supported Not Supported HTML tags will appear as it is .
Backslash characters Supported Not Supported Backslash characters are not properly escaped due to strange behavior from teams side while loading backslashes.

image

To support different style format we have tried "github flavoured markdown" which is working fine in case of normal text but not in case of adaptive cards . As gfm converts text into HTML tags and HTML is not supported in adaptive cards. https://octokit.github.io/rest.js/v18#markdown-render

Is there any scope of HTML tag support in Adaptive Cards Text block ? or how can we support above text formatting style in Adaptive Cards?

priyakewlani18 avatar Aug 27 '20 14:08 priyakewlani18

Hi @priyakewlani18. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.

ghost avatar Aug 31 '20 20:08 ghost

This one is interesting.. I dont think we support github specific styles in AC renderers - teams or otherwise; However we do support markdown and on JS/desktop Teams that should be pretty much all of what markdownit supports - @dclaux / @matthidinger to correct me here and also to weigh in on what seems to be a feature request. @siduppal / @Wajeed-msft thoughts here?

shalinijoshi19 avatar Sep 21 '20 20:09 shalinijoshi19

Hi @priyakewlani18 , currently Adaptive card doesn't support HTML formatting. Please refer here for more information.

Manish-MSFT avatar Oct 09 '20 11:10 Manish-MSFT

We don't currently have plans to support github text style features.

RebeccaAnne avatar Aug 26 '21 20:08 RebeccaAnne