markdown-toc
markdown-toc copied to clipboard
TOC doesn’t understand between comment in code and h1 header
If you have a piece of code, for install ruby or sh like this:
# my function is nice
def my_function ()
"I’m nice"
end
TOC will interpret 'my function is nice' as a h1 header.
@BuonOmo Yea I have the same problem. As a workaound you can add a space before your comment.. not sexy at all but it does the job :-)
Nice hack! But I was more looking of a way to fix it :stuck_out_tongue: