refactor: use markdown dialects (gfm as default)
This commit is contained in:
+6
-5
@@ -1,15 +1,16 @@
|
||||
---
|
||||
'@backstage/core': minor
|
||||
'@backstage/core': patch
|
||||
---
|
||||
|
||||
Adds the MarkdownContent component to render and display markdown input.
|
||||
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={markdown} />
|
||||
<MarkdownContent content={markdownGithubFlavored} />
|
||||
```
|
||||
|
||||
Render and display the github flavored markdown [GFM](https://github.github.com/gfm/) input:
|
||||
To render the Markdown content with plain [CommonMark](https://commonmark.org/), set the dialect to `common-mark`
|
||||
|
||||
```
|
||||
<MarkdownContent content={markdownGithubFlavored} enableGfm />
|
||||
<MarkdownContent content={markdown} dialect='common-mark />
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user