valeriangalliat / markdown-it-anchor

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

Add <span> inside permalink.headerLink style until safari reader more is fixed #107

Closed GrimLink closed 2 years ago

GrimLink commented 2 years ago

I would be nice to add the <span> around the header text inside the anchor until the issue with the Safari reader mode is fixed.

Or atleast add an option for this.

As referenced by this blog article https://www.leereamsnyder.com/blog/making-headings-with-links-show-up-in-safari-reader that you also mention on your README.

valeriangalliat commented 2 years ago

That's a good point, I just added a safariReaderFix option to headerLink in 8.4.1!