Skip to content

Naming slides (stable anchor links) #161

Answered by yhatt
eyssette asked this question in Ideas
Discussion options

You must be logged in to vote

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)

# 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)

[Ju…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@LucaErr
Comment options

@yhatt
Comment options

@LucaErr
Comment options

@yhatt
Comment options

@amitbha
Comment options

Comment options

You must be logged in to vote
1 reply
@yhatt
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
5 participants