medfreeman / markdown-it-toc-and-anchor

markdown-it plugin to add a toc and anchor links in headings
MIT License
60 stars 35 forks source link

Tapping into renderAnchorLink #63

Open FrankieYin opened 4 years ago

FrankieYin commented 4 years ago

Hi,

I want to add some attributes to the anchor link (the <a> tag) apart from the default class and href attributes. Is there a way to do this without modifying source code?

Thanks, Zhijun