valeriangalliat / markdown-it-anchor

A markdown-it plugin that adds an `id` attribute to headings and optionally permalinks.
The Unlicense
292 stars 72 forks source link

update default slugify #70

Closed thanhdatpd closed 4 years ago

thanhdatpd commented 4 years ago

old slugify will slugify not expect character like: "a single HTTP/S server" =>>> "a-single-http%2Fs-server" we can't use this id in html.

nagaozen commented 4 years ago

old slugify will slugify not expect character like: "a single HTTP/S server" =>>> "a-single-http%2Fs-server" we can't use this id in html.

Won't be merged. This is the behavior is desired by design, it's both a valid id and url. Feel free to use your own slugify function as an option if you feel it's better.

Thank you for your PR though.