Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to preserve inline formatting in heading content #47

Open
LeaVerou opened this issue Mar 25, 2024 · 0 comments
Open

Option to preserve inline formatting in heading content #47

LeaVerou opened this issue Mar 25, 2024 · 0 comments

Comments

@LeaVerou
Copy link

The generated TOC currently drops any inline formatting from the headings, which in some cases is ok, and in others makes them read very weird (as an extreme example, imagine <h2><s>deleted</s> something new</h2> which would be displayed as "deleted something new").

It would be nice if there was an option to preserve some or all formatting. An MVP would be just a boolean, but the setting could in the future take an array/set of tags too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant