Merge pull request #3157 from SDA-SE/feat/formatted-react-markdown

feat: add MarkdownContent component to @backstage/core
This commit is contained in:
Patrik Oldsberg
2020-11-04 11:14:49 +01:00
committed by GitHub
8 changed files with 312 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
---
'@backstage/core': patch
---
Adds the MarkdownContent component to render and display Markdown content with the default
[GFM](https://github.github.com/gfm/) (Github flavored Markdown) dialect.
```
<MarkdownContent content={markdownGithubFlavored} />
```
To render the Markdown content with plain [CommonMark](https://commonmark.org/), set the dialect to `common-mark`
```
<MarkdownContent content={markdown} dialect='common-mark />
```