Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slugify Markdown headers #299

Closed
yhatt opened this issue May 21, 2022 · 0 comments · Fixed by #338
Closed

Slugify Markdown headers #299

yhatt opened this issue May 21, 2022 · 0 comments · Fixed by #338
Assignees
Labels
enhancement New feature or request

Comments

@yhatt
Copy link
Member

yhatt commented May 21, 2022

Providing built-in slugified headers in Marp Core will improve anchor navigation in Marp for VS Code.

# ABC
## DEF
## GHI JKL
### DEF
<h1 id="abc">ABC</h1>
<h2 id="def">DEF</h2>
<h2 id="ghi-jkl">GHI JKL</h2>
<h3 id="def-2">DEF</h3>

Requirements

  • Using a compatible rule with GitHub to slugify may be better. VS Code's intellisense looks like to be adopted compatible rule with GitHub in header slugs.

  • Generating slug for ID anchors must be able to disable because a generated slide snippets by Marp Core may be used in a middle of website. If conflicted IDs with exist web contents, an integrated web app may become broken.

Note

Marp CLI has not provided custom anchor link support in bespoke template. This implementation may motivate to support custom anchor links in bespoke template.

Related

@yhatt yhatt self-assigned this Jan 20, 2023
@yhatt yhatt added the enhancement New feature or request label Feb 10, 2023
@yhatt yhatt closed this as completed in #338 Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant