But if I am reading it correctly, I believe those changes still won't work properly in the case of a code block nested in a list on the same line (which is valid in GitHub Flavoured markdown, and maybe others)
eg.
- This is a list
- It has items
- ```js
console.log("Foo")
See also:
- https://github.com/naokazuterada/MarkdownTOC/pull/170
I see that better support for code blocks nested in lists was added in this commit:
But if I am reading it correctly, I believe those changes still won't work properly in the case of a code block nested in a list on the same line (which is valid in GitHub Flavoured markdown, and maybe others)
eg.