aboutsummaryrefslogtreecommitdiff
path: root/src/demo
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-01-11 22:40:43 +0300
committereug-vs <eug-vs@keemail.me>2021-01-11 22:45:38 +0300
commite3253a726d4bb71825e392cbde89d05bb3146dc1 (patch)
tree8a1d3d030704919e7940695c3c998438f6c41159 /src/demo
parent53e41901558319e6063fdcbca4f6150101c57f10 (diff)
downloadreact-benzin-e3253a726d4bb71825e392cbde89d05bb3146dc1.tar.gz
feat: use inline syntax for context
Diffstat (limited to 'src/demo')
-rw-r--r--src/demo/content.md12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/demo/content.md b/src/demo/content.md
index ad61d33..41607a9 100644
--- a/src/demo/content.md
+++ b/src/demo/content.md
@@ -1,9 +1,5 @@
## Markdown
-[Markdown file](${url}) *(...
-```react
-fileName
-```
-)* that you can see on the left was parsed and rendered by **BENZIN**! :rocket:
+[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?
@@ -12,6 +8,6 @@ import Markdown from \'react-benzin\';
const data = \'# Header\\nHello, *world!*\';
ReactDOM.render(<Markdown data={data}/>, document.getElementById(\'root\'));
```
-```react
-tryButton
-```
+
+`$tryButton`
+