JavaScript library does not natively support markdown, and third-party libs are too permissive
See original GitHub issueThis sample has a lot of markdown syntax that shouldn’t be supported according to the docs.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "## Markdown Headers should not be supported"
},
{
"type": "TextBlock",
"text": "___"
},
{
"type": "TextBlock",
"text": "Neither should horizontal rules"
},
{
"type": "TextBlock",
"text": "Some of my spaces are being eaten up by the markdown parser"
},
{
"type": "TextBlock",
"text": "~~Strikethrough should not be supported.~~"
},
{
"type": "TextBlock",
"text": ">Quote blocks should be ignored"
},
{
"type": "TextBlock",
"text": "Markdown | Tables | Work\n:--- | :---: | ---:\n*And* | change | **horizontal alignment**\n1 | 2 | 3"
},
{
"type": "TextBlock",
"text": " This one I don't really understand"
},
{
"type": "TextBlock",
"text": "````\nBut Seems to be a shortcut for code blocks, which should be ignored."
}
]
}
Renders as:
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Is there any good Markdown Javascript library or control?
The reason I'd like a Javascript solution is because I want to display a live preview, just like on StackOverflow. My site is...
Read more >Build a software bill of materials (SBOM) for open source ...
The software bill of material list is made up of third-party open source libraries, vendor provided packages and first-party artifacts built ...
Read more >Licenses — PathViewer 3.4.1 documentation
The use of these trademarks does not indicate endorsement of the trademark holder by Font Awesome, nor vice versa. **Please do not use...
Read more >SurveyJS - JavaScript Libraries for Surveys and Forms
The SurveyJS Form Library is free and open-source under the MIT license, which is extremely permissive and lets true innovation take place. Data...
Read more >Why you should reconsider using third-party JavaScript ...
Below I will outline some points I personally consider before deciding whether or not to use a third-party 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
@Vasanth-S / @matthidinger This is the markdown parser we are using for our react-native implementation. Currently, it supports the below 5 types:
You can refer the same to support web-based markdown processor. In case, if you need any help, we are happy to work on that.
Tracked by #1984