You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The naive solution is to override the heading renderer and generate ids in the same way marked-toc does.
See related issues #432#450. The problem extends far beyond leading/trailing slashes.
I think I proposed a reasonable solution in #456. Feel free to merge it. Notice that you can then override the heading renderer and possibly use uslug to generate id attributes.
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: