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
I am authoring some Markdown that will be read via GitHub. MPE's TOC generation is super useful, but it doesn't strip out images... or seemingly anything, when it comes to the slug. I wouldn't want the same sanitization on the slug as MPE applies to the text displayed in the TOC (which, for example, preserves images). I would want something closer to what GitHub does; not necessarily identical behavior, but if the behavior is close enough, I can use MUME-generated TOCs for GitHub READMEs and the like.
It's even possible to get rid of the trailing hyphen (so that if I decided to remove the badge in the future, the id would stay the same). This heading:
I am authoring some Markdown that will be read via GitHub. MPE's TOC generation is super useful, but it doesn't strip out images... or seemingly anything, when it comes to the slug. I wouldn't want the same sanitization on the slug as MPE applies to the text displayed in the TOC (which, for example, preserves images). I would want something closer to what GitHub does; not necessarily identical behavior, but if the behavior is close enough, I can use MUME-generated TOCs for GitHub READMEs and the like.
For example, this heading:
...has the slug
class-foo-
on GitHub.It's even possible to get rid of the trailing hyphen (so that if I decided to remove the badge in the future, the id would stay the same). This heading:
...has the GitHub slug
class-foo
, which is even better!Meanwhile, MPE generates the slug
class-foonbspimg-srchttpexamplecombadgesvg
. I would love for it to beclass-foo
instead.Alternatively (or additionally), if this turned into
class-foo
I'd be happy:The text was updated successfully, but these errors were encountered: