Skip to content

Commit 21fdadc

Browse files
gy-mateantfu
authored andcommitted
docs: add example and correct usage of [click] & [click:{n+1}] (#1717)
1 parent a5791e9 commit 21fdadc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

guide/syntax.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,23 @@ Basic Markdown and HTML are also supported in notes when the Presenter renders n
424424

425425
> Available since v0.48
426426
427-
For some slides you might have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers in your notes for the timing you need to go to another [click](/guide/animations#click-animations), Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.
427+
For some slides you might have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers at the beginning of any line in your notes for the timing you need to go to another [click](/guide/animations#click-animations). You may skip `n` clicks by using `[click:{n+1}]`. For example:
428+
429+
```md
430+
<!--
431+
Content before the first click
432+
433+
[click] This will be highlighted after the first click
434+
435+
Also highlighted after the first click
436+
437+
- [click] This list element will be highlighted after the second click
438+
439+
[click:3] Last click (skip two clicks)
440+
-->
441+
```
442+
443+
Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.
428444

429445
<!-- TODO: add a video -->
430446

0 commit comments

Comments
 (0)