diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2021-01-11 22:15:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 22:15:33 +0200 |
commit | 5f72950c56ea8853b41b64a092a2e98dbf53cf3f (patch) | |
tree | 240101bb69aea59c72e1e6fa328b9c5e1729f367 /src/demo/content.md | |
parent | bc288a43c90ab830019bf077d72081fade76c06e (diff) | |
parent | aa4493b08baae2d41a4c4346b9a5c63b08df471e (diff) | |
download | react-benzin-5f72950c56ea8853b41b64a092a2e98dbf53cf3f.tar.gz |
Merge pull request #20 from eug-vs/feat/react-markdown
Feat: use react-markdown library and support context
Diffstat (limited to 'src/demo/content.md')
-rw-r--r-- | src/demo/content.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/demo/content.md b/src/demo/content.md new file mode 100644 index 0000000..41607a9 --- /dev/null +++ b/src/demo/content.md @@ -0,0 +1,13 @@ +## Markdown +[Markdown file](${url}) *(...`$fileName`)* that you can see on the left was parsed and rendered by **BENZIN**! :rocket: +Switch between tabs on the header to explore other markdown templates. :recycle: +Templates on the left are being loaded from the [GitHub](https://github.com), though this pane is generated from plaintext. :pen: +## How do I use this feature? +``` +import Markdown from \'react-benzin\'; +const data = \'# Header\\nHello, *world!*\'; +ReactDOM.render(<Markdown data={data}/>, document.getElementById(\'root\')); +``` + +`$tryButton` + |