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.

JavaScript library does not natively support markdown, and third-party libs are too permissive

See original GitHub issue

This 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:

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
Surezt22commented, Apr 17, 2019

@Vasanth-S / @matthidinger This is the markdown parser we are using for our react-native implementation. Currently, it supports the below 5 types:

  • Bold
  • Italic
  • Ordered List
  • Unordered List
  • Link

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.

0reactions
jonmillcommented, Nov 4, 2021

Tracked by #1984

Read more comments on GitHub >

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

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