[PR #471] Fix Setext headings in block quotes #1054

Closed
opened 2026-01-29 14:49:07 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/471

State: closed
Merged: No


This PR attempts to fix #465 (spoiler alert: I've introduced another problem).

I've added a new test that makes sure that this markdown

> Hello
> ----
> this is some other text

is parsed as a block quote containing a h2. I made the test pass but introduced another regression around lazy continuations of block quotes. This is quite a head-scratcher for me so I'm getting this out with the failing test, maybe we can start discussing intermediate results and another pair of eyes helps fixing the remaining regression (or making sense of my overall approach)

**Original Pull Request:** https://github.com/xoofx/markdig/pull/471 **State:** closed **Merged:** No --- This PR attempts to fix #465 (spoiler alert: I've introduced another problem). I've added a new test that makes sure that this markdown ``` > Hello > ---- > this is some other text ``` is parsed as a block quote containing a `h2`. I made the test pass but introduced another regression around lazy continuations of block quotes. This is quite a head-scratcher for me so I'm getting this out with the failing test, maybe we can start discussing intermediate results and another pair of eyes helps fixing the remaining regression (or making sense of my overall approach)
claunia added the pull-request label 2026-01-29 14:49:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1054