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

Failure to create correct slug (id value) after Markdown-it Typographer #8

Open
SAKryukov opened this issue Jul 21, 2017 · 0 comments

Comments

@SAKryukov
Copy link

The problem is: this plug-in does not work if typographer is enabled (very typical) and there are " ' += ..., etc. in some header.

To reproduce:

Use input, with Typographer enabled:

# Some Heading...

It would not be a problem but TOC generator (your plug-in is only needed when a TOC generator is used) will usually work before Typographer. Id values will mismatch, the navigation won't work.

I repeat: separate "named-header" and TOC plug-ins make no sense. Both functions should be performed by a single plug-in. Okay, I guess I'll do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant