Skip to content

Conversation

@Martin005
Copy link
Contributor

@Martin005 Martin005 commented Oct 25, 2025

This PR fixes source of children of multiline block quotes.

I added a method which walks the subtree of the container and updates nodes with zero end columns by adopting the end position from their deepest-last descendant or falling back to their start position. This ensures more accurate source position tracking in the AST.

Fixes #567

@kivikakk kivikakk force-pushed the sourcepos-multiline-blockquote-with-blocks branch from 5f8e83e to 820f4e8 Compare October 26, 2025 02:37
@kivikakk
Copy link
Owner

Thanks! This is a really nice fallback; we could possibly opt to rely on it more in some places.

@kivikakk kivikakk merged commit f0f21c8 into kivikakk:main Oct 26, 2025
22 checks passed
@Martin005 Martin005 deleted the sourcepos-multiline-blockquote-with-blocks branch October 26, 2025 06:47
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.

incorrect sourcepos for paragraph in a nested block in a multiline block quote

2 participants