Closed jsepia closed 5 years ago
When true, it bypasses anchorLinkSymbol and instead wraps the anchor link around the heading text:
require('markdown-it')() .use(require('markdown-it-toc-and-anchor'), { wrapHeadingTextInAnchor: true }) .render(`# Heading`)
<h1 id="heading"><a class="markdownIt-Anchor" href="#heading">Heading</a></h1>
I needed this for my site and I figured it wouldn't hurt to merge this feature in.
When true, it bypasses anchorLinkSymbol and instead wraps the anchor link around the heading text:
I needed this for my site and I figured it wouldn't hurt to merge this feature in.