Skip to content

Commit 13792f1

Browse files
committed
Enhance the code blocks docs
Describe what the `[1-2|3|4]` is doing Add link to reveal.js code docs
1 parent f2fc58a commit 13792f1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/content/basic-syntax/codeBlocks.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ description = ""
44
weight = 10
55
+++
66

7+
As you go to the next slide this code block will first highlight lines 1-2, then line 3, then finally line 4.
8+
9+
Note: the `js` indicates that this code should be highlighted as javascript
710
```md
811

912
```js [1-2|3|4]
10-
let a = 1;
11-
let b = 2;
12-
let c = x => 1 + 2 + x;
13-
c(3);
14-
```
13+
let a = 1;
14+
let b = 2;
15+
let c = x => 1 + 2 + x;
16+
c(3);
17+
```
1518
```
1619
17-
![CodeBlock](https://mszturc.github.io/obsidian-advanced-slides/images/codeblock.png)
20+
![CodeBlock](https://mszturc.github.io/obsidian-advanced-slides/images/codeblock.png)
21+
22+
For the full documentation about what you can do with code blocks see: https://revealjs.com/code/

0 commit comments

Comments
 (0)