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

replacement of "." in headings for slugs #908

Open
dkuegler opened this issue Apr 12, 2024 · 1 comment
Open

replacement of "." in headings for slugs #908

dkuegler opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dkuegler
Copy link

dkuegler commented Apr 12, 2024

What version of myst-parser are you using?

2.0.0

What version dependencies are you using?

Sphinx 7.2.6

What operating system are you using?

Linux

Describe the Bug

Anchors are generated differently in Myst parser and GitHub markdown parsers. Specifically,
# Ubuntu 20.04 gets the anchor ubuntu-2004 on GitHub, but ubuntu-20-04 by Myst parser

Expected Behavior

Same anchor as GitHub.

To Reproduce

See above

@dkuegler dkuegler added the bug Something isn't working label Apr 12, 2024
@chrisjsewell
Copy link
Member

Same anchor as GitHub.

Well thats the difficulty; github doesn't have good specifications for its syntaxes 😒

But actually I have written an entire slugger in rust recently 😉 : https://github.com/markdown-it-rust/markdown-it-plugins.rs/tree/main/crates/github_slugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants