The current regex within remove_items_in_codeblock doesn't properly match codeblocks nested inlists, which results in invalid ToC generation (often meaning large chunks of actual content get incorrectly filtered out due to bad matching between opening/closing code fence backticks)
This PR fixes the regex so that it will correctly match when a codeblock is nested in a list started with - or *.
The current regex within
remove_items_in_codeblock
doesn't properly match codeblocks nested inlists, which results in invalid ToC generation (often meaning large chunks of actual content get incorrectly filtered out due to bad matching between opening/closing code fence backticks)This PR fixes the regex so that it will correctly match when a codeblock is nested in a list started with
-
or*
.