I use your module to generate table of contents within README.md for documentation (of course).
I spotted an interesting bug where if a code section is indented by a single space character, the hashtags (i.e. comments within a shell script) will be included in the generated table of contents.
So for example:
// Imagine the single back tick represents three backticks to make the section code
`
# My comment for the code
echo "Hello this is my example"
`
Would make the comment to be included in the table of contents.
So the solution was to unindent the whole block, but since it's a very unnoticable issue, would it be possible to make the parser to identify that it is a code block no matter how indented it is?
I use your module to generate table of contents within README.md for documentation (of course).
I spotted an interesting bug where if a code section is indented by a single space character, the hashtags (i.e. comments within a shell script) will be included in the generated table of contents.
So for example:
Would make the comment to be included in the table of contents.
So the solution was to unindent the whole block, but since it's a very unnoticable issue, would it be possible to make the parser to identify that it is a code block no matter how indented it is?