aboutsummaryrefslogtreecommitdiff
path: root/src/demo/content.md
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2021-01-11 22:15:33 +0200
committerGitHub <noreply@github.com>2021-01-11 22:15:33 +0200
commit5f72950c56ea8853b41b64a092a2e98dbf53cf3f (patch)
tree240101bb69aea59c72e1e6fa328b9c5e1729f367 /src/demo/content.md
parentbc288a43c90ab830019bf077d72081fade76c06e (diff)
parentaa4493b08baae2d41a4c4346b9a5c63b08df471e (diff)
downloadreact-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.md13
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`
+