-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Back ticks in titles (incorrectly?) converted to hypens #510
Comments
I, too, rely heavily on hashes. The naive solution is to override the See related issues #432 #450. The problem extends far beyond leading/trailing slashes. |
+1 to fixing this out of the box |
+1. I'd go a bit further and say that leading/trailing hyphens should be removed as well: # Hello!
# How to fix X? <h1 id="hello-">Hello!</h1>
<h1 id="how-to-fix-x-">How to fix X?</h1> |
Smashing library, much thanks!
I may be abusing markdown a little, but I'm using code back ticks in my titles:
This however produces HTML in which the backtick is replaced with a hyphen in the
id
attribute of the resulting header element:The problem is that I'm using marked-toc to convert this into the following markdown TOC (and then HTML via marked) which of course is now incompatible as that package just ignores the back ticks in the headers:
... and finally ...
The text was updated successfully, but these errors were encountered: