Skip to content

🧪 Add regression test for code fences inside GFM alert blocks#1142

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-codefences-closing
Draft

🧪 Add regression test for code fences inside GFM alert blocks#1142
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-codefences-closing

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

Code fences weren't closing properly when nested inside GFM alert quote blocks (> [!NOTE]), causing content to leak outside the alert. The fix is already present in markdown-it-py 4.2.0 (the minimum version required by this project). This PR adds a regression test to prevent future breakage.

  • Added [alert-code-fence] fixture covering multiple fenced code blocks inside an alert
> [!NOTE]
> Note
>
> ```py
> "code"
> ```
>
> other
>
> ```py
> "other code"
> ```

Copilot AI changed the title [WIP] Fix codefences closing improperly in GFM alert quotes 🧪 Add regression test for code fences inside GFM alert blocks May 20, 2026
Copilot AI requested a review from chrisjsewell May 20, 2026 20:20
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.

Codefences closing improperly when inside GFM alert quotes blocks

2 participants