Commit 87b10c5
🧪 Add regression test for code fences inside GFM alert blocks (#1142)
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
```markdown
> [!NOTE]
> Note
>
> ```py
> "code"
> ```
>
> other
>
> ```py
> "other code"
> ```
```
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>1 parent 80248d4 commit 87b10c5
1 file changed
Lines changed: 29 additions & 0 deletions
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
258 | 287 | | |
259 | 288 | | |
260 | 289 | | |
| |||
0 commit comments