markdown-toc
markdown-toc copied to clipboard
TOC comments show up in BitBucket markdown
When I generate a TOC with markdown-toc the generated html comments are displayed in my BitBucket repo.
According to this answer on stackoverflow using a link label should be a portable way to generate hidden comments.
Tested the mentioned link label using the preview option of this issue. [//]: # (this is a hidden comment that does not show up in the preview)
+1
Just ran into the same issue with another git repo web viewer. Wrapping the markdown-toc tags in [comment]: # (...)
would fix this. I use that "trick" for all my comments in markdown files.
+1