-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
A traditional anchor link to # Page 1
[Jump to third page](#third-page)
---
...
---
### Page 3 <a id="third-page"></a> See naming-slides.pdf. |
Beta Was this translation helpful? Give feedback.
-
Stable Anchor Links would be a great improvement. I use Marp for training slides. They improve every day, so the slide number is changing often. A stable link would be very helpful. Exporting to PDF is not an option, because the slides are presented as HTML. |
Beta Was this translation helpful? Give feedback.
-
UPDATE: The latest Marp CLI v2.5.0 and Marp for VS Code v2.6.0 have added support for links to the named anchor. This updates are including assigning auto-generated slugs to Markdown headings and the support of anchor links in the generated HTML from Marp Markdown. Links to the Markdown heading Slug (Link to Markdown heading)# Title
[Jump to Hello](#hello)
---
## Contents
- ...
- ...
---
## Hello
Example In general Markdown document, a link of "Jump to Hello" can actually jump to "Hello" heading. And now, Marp can jump to the slide page 3 too. Named anchor (with raw HTML)[Jump to closing slide](#closing-slide)
---
...
---
<a id="closing-slide"></a>
Thanks! Marp also supports the anchor defined through To use |
Beta Was this translation helpful? Give feedback.
UPDATE: The latest Marp CLI v2.5.0 and Marp for VS Code v2.6.0 have added support for links to the named anchor.
This updates are including assigning auto-generated slugs to Markdown headings and the support of anchor links in the generated HTML from Marp Markdown. Links to the Markdown heading
[link](#heading)
, that is suggestable by VS Code (Markdown Language Server), would have to work correctly.Slug (Link to Markdown heading)
In general Markdown document, a link of "Jump to Hello" can actually jump to "Hello" heading. And now, Marp can jump to the slide page 3 too.
Named anchor (with raw HTML)
[Ju…