We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
markdown-toc will include headers that are inside of HTML comments (<!-- comment -->), as is allowed in GitHub Flavored Markdown.
markdown-toc
<!-- comment -->
sample.md
# Header 1 listed <!-- # Header 2 unlisted --> # Header 3 listed
Then run: npx markdown-toc sample.md
npx markdown-toc sample.md
- [Header 1 listed](#header-1-listed) - [Header 2 unlisted](#header-2-unlisted) - [Header 3 listed](#header-3-listed)
- [Header 1 listed](#header-1-listed) - [Header 3 listed](#header-3-listed)
# Header 1 listed <!-- ``` # Header 2 unlisted ``` --> # Header 3 listed
The text was updated successfully, but these errors were encountered:
chore: Add test for commented header (closes jonschlinkert#178; alrea…
301a4d8
…dy fixed)
No branches or pull requests
markdown-toc
will include headers that are inside of HTML comments (<!-- comment -->
), as is allowed in GitHub Flavored Markdown.Steps to reproduce
sample.md
Then run:
npx markdown-toc sample.md
Actual result
Expected result
Workaround
The text was updated successfully, but these errors were encountered: