nok / markdown-toc

Generate and update magically a table of contents based on the headlines of a parsed markdown file.
MIT License
68 stars 37 forks source link

TOC comments show up in BitBucket markdown #90

Open cdemeijer opened 7 years ago

cdemeijer commented 7 years ago

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.

stefanb2 commented 7 years ago

+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.

PatrykMilewski commented 5 years ago

+1