Skip to content

Commit 75bc5c5

Browse files
committed
fix #923; run=false
1 parent a7621d0 commit 75bc5c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/javascript.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ The code is rendered below the output, like so:
4444
1 + 2
4545
```
4646

47+
Alternatively, if you just want to show the code _without_ running it, set the `run` directive to `false`:
48+
49+
````md
50+
```js run=false
51+
1 + 2
52+
```
53+
````
54+
4755
If an expression evaluates to a DOM node, the node is inserted into the page directly above the code block. Use this to create dynamic content such as charts and tables.
4856

4957
```js echo

0 commit comments

Comments
 (0)