Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Nov 6, 2025

This fixes an issue where it was panicking due to an unbalanced HTML tag when exiting a markdown element. The problem was that the tag stack was left non-empty when processing was finished due to end_tag being out of sync with the pulldown-cmark event tags.

There really should be better validation that the stack is in sync and balanced, but this should address the main culprit of the interplay of raw HTML tags and pulldown-cmark events.

ehuss added 3 commits November 6, 2025 07:25
This is unexpectedly panicking.
This is to reduce the size of the processing function.
This fixes an issue where it was panicking due to an unbalanced HTML tag
when exiting a markdown element. The problem was that the tag stack was
left non-empty when processing was finished due to `end_tag` being out
of sync with the pulldown-cmark event tags.

There really should be better validation that the stack is in sync and
balanced, but this should address the main culprit of the interplay of
raw HTML tags and pulldown-cmark events.
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Nov 6, 2025
@ehuss ehuss enabled auto-merge November 6, 2025 15:32
@ehuss ehuss added this pull request to the merge queue Nov 6, 2025
Merged via the queue into rust-lang:master with commit 4a9a517 Nov 6, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Nov 6, 2025
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.

2 participants