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

Anchor links containing special characters not being stripped #191

Open
lptorres opened this issue May 15, 2020 · 1 comment · May be fixed by #575
Open

Anchor links containing special characters not being stripped #191

lptorres opened this issue May 15, 2020 · 1 comment · May be fixed by #575
Labels
help wanted Extra attention is needed

Comments

@lptorres
Copy link

When I define a section containing special characters, for example:

## api/path/to/resource/<resource_id>/

The preview doesn't strip the slashes and <>, so the anchor link becomes:

#api%2Fpath%2Fto%2Fresource%2F<resource_id>%2F

But on GitHub the actual anchor link would be:

#apipathtoresourceresource_id
@iamcco iamcco added the help wanted Extra attention is needed label May 15, 2020
@tomtomjhj
Copy link

Maybe this can be fixed by setting markdown-it-anchor's slugify option. https://github.com/valeriangalliat/markdown-it-anchor#user-friendly-urls

@tomtomjhj tomtomjhj linked a pull request May 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants