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

Support optional spacing between the header text and the permalink anchor #52

Closed rivy closed 5 years ago

rivy commented 5 years ago

Discussion

The added space between the header text and permalink anchor can throw off CSS alignment, especially when positioning the permalink in front of the header. This commit adds an option which can suppress that added space.

I hope it's useful enough to be merged into your mainline and up to "npm".

I'm happy to make revisions if you see that need.

valeriangalliat commented 5 years ago

Sorry for the late review, that's great, thank you! I just published it as 5.1.0.