Closed ruanyf closed 5 years ago
Allows you to add a prefix to the generated header ids, e.g. section-.
section-
markdownIt().use(markdownItTocAndAnchor, { anchorLinkPrefix: 'section-' }).render('# hello world') // <h1 id="section-hello-world"> // <a class="markdownIt-Anchor" href="#section-hello-world">#</a> // hello world // </h1>'
Allows you to add a prefix to the generated header ids, e.g.
section-
.