markdown-toc
markdown-toc copied to clipboard
Hash in code block used for TOC entry
I have a text, where I use a code block for 'sh' to show a shell script. First line of the script is the typical Shebang line. This is used by markdown-toc to generate a wrong TOC line.
Can I escape the hash character in the code block or is there another workaround? In general I guess code blocks should be ignored.
Hey, I think this has already been fixed, it's just the owner hasn't published the fixed version.
If you follow the instructions here -- clone this repo, install dependencies link to this repo -- and then try to generate TOC in a Markdown file with hashtag comments in a code block, the code block comments should be ignored completely.