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 table/paragraph interruption when nested #679

Merged

Conversation

notriddle
Copy link
Collaborator

This fixes the "peek at next line" code to account for block quotes. It's a bit more complicated than just skipping ahead, because the old code would cause the block quote to get interrupted by a table nested inside it (it simulated reaching a blank line, which interrupts the block quote). Instead, this commit hooks into the normal paragraph-interrupt code.

mgeisler and others added 8 commits June 24, 2023 12:15
Issue pulldown-cmark#659 was closed via pulldown-cmark#668, so we can clean this up now.
There are small differences between how commonmark.js and
pulldown-cmark emit these.
This fixes the "peek at next line" code to account for block
quotes. It's a bit more complicated than just skipping ahead,
because the old code would cause the block quote to get
interrupted by a table nested inside it (it simulated reaching
a blank line, which interrupts the block quote). Instead, this
commit hooks into the normal paragraph-interrupt code.
…sue-659

Allow fuzzing all HTML declarations
Filter out empty text and HTML events when fuzzing
Block quotes interrupt paragraphs even with no space at start
@Martin1887
Copy link
Collaborator

Perfect, thanks!

@Martin1887 Martin1887 merged commit f624198 into pulldown-cmark:master Jun 25, 2023
1 check passed
@notriddle notriddle deleted the notriddle/table-interrupt-nesting branch June 25, 2023 16:33
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

3 participants