nagaozen / markdown-it-toc-done-right

A table of contents (TOC) plugin for Markdown-it with focus on semantic and security. Made to work gracefully with markdown-it-anchor.
MIT License
133 stars 26 forks source link

Retain HTML in headings #82

Open dwhieb opened 11 months ago

dwhieb commented 11 months ago

Some of my headings have inline HTML to italicize certain words. These tags are stripped from the heading before the TOC renders. Is it possible to retain the inline tags?

Input: # Future Tense: *will* Expected Output: <li><a href=#future-tense-will>Future Tense: <em>will</em></a></li> Actual Output: <li><a href=#future-tense-will>Future Tense: will</a></li>