Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix remove_items_in_codeblocks regex for codeblocks nested in lists #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xdevalias
Copy link

@0xdevalias 0xdevalias commented Jan 18, 2024

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 *.

@0xdevalias
Copy link
Author

@naokazuterada Any chance of getting this reviewed/merged/released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant