Skip to content

makrdown: Fix interleaved HTML and markdown styles#11586

Open
ogoffart wants to merge 1 commit intomasterfrom
olivier/fix-#11563
Open

makrdown: Fix interleaved HTML and markdown styles#11586
ogoffart wants to merge 1 commit intomasterfrom
olivier/fix-#11563

Conversation

@ogoffart
Copy link
Copy Markdown
Member

When HTML closing tags like appear inside markdown formatting like emphasis, the style stack would pop and consume the wrong style entry, corrupting subsequent formatting.

Report an error for overlapping HTML and markdown styles instead of silently consuming the mismatched entry. The popped style is pushed back so the stack stays consistent.

Fixes: #11563

When HTML closing tags like </u> appear inside markdown formatting
like *emphasis*, the style stack would pop and consume the wrong
style entry, corrupting subsequent formatting.

Report an error for overlapping HTML and markdown styles instead of
silently consuming the mismatched entry. The popped style is pushed
back so the stack stays consistent.

Fixes: #11563
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.

Invalid markdown causes compiler panic

1 participant