Closed miller-productions closed 3 years ago
This is a problem in the algorithm of detecting code blocks. That said, ``</code> is only used for multiline code blocks, you should just use
.
EDIT: actually I think it doesn't make sense to fix a wrongly formatted document. If you see wrong results it'll make you try to fix your syntax.
Thanks @mcornella
If I understand what you have said correctly, does that mean the issue doesn't exist if you:
a) use triple back-ticks ```
for a multi-line code block...
e.g. this
over several
lines
b) use single back-ticks ` for single-line code example
e.g. this on one line
Did I get that right?
From what I've tested it seems this is how it works yeah.
Hi Alan,
Thanks for creating markdown-toc, I enjoy using it.
I recently discovered a really bizarre edge case bug that you might be interested in.
Summary
If you have a heading line which is directly followed by a
<code-snippet-with-angle-brackets>
and the code snippet has the same text as the heading, the TOC generated by TOC: insert/update gets cut off.Below is an example. See how the generated TOC doesn't go further than Heading3...
------- BEGIN EXAMPLE ----------