Ignore comments that don't start with TOC #50
Comments
As a short-term workaround, you can insert zero-width spaces (U+200B) characters between the That way, the current regex doesn't notice the line. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to add an attribution to my TOC, so people knew that I used Markdown TOC to generate it.
But this didn't work, since Markdown TOC looks for any comment that has
TOC
anywhere in the comment. It stripped the comment entirely.Surpisingly, it doesn't even have to be upper case, nor a separate word:
It still stripped the comment entirely, despite TOC only appearing in "stockfish"
I would like for Markdown TOC to:
TOC
<!--\s*TOC
The text was updated successfully, but these errors were encountered: