Skip to content

feat: Add closed property to NodeCodeBlock#661

Merged
kivikakk merged 2 commits intokivikakk:mainfrom
Martin005:codeblock-closed-and-sourcepos
Oct 29, 2025
Merged

feat: Add closed property to NodeCodeBlock#661
kivikakk merged 2 commits intokivikakk:mainfrom
Martin005:codeblock-closed-and-sourcepos

Conversation

@Martin005
Copy link
Copy Markdown
Contributor

This PR adds tracking of whether fenced code blocks are properly closed with a closing fence. This is then used to fix the sourcepos of unclosed fenced code blocks.

Closes #552, fixes #570

@Martin005
Copy link
Copy Markdown
Contributor Author

@kivikakk wondering if I should have split this into two PRs, one for each commit. If you want, I can do that :)

@kivikakk
Copy link
Copy Markdown
Owner

One PR is fine, no need for the extra ceremony :) Thank you!!

@kivikakk kivikakk merged commit 3beba6d into kivikakk:main Oct 29, 2025
22 of 23 checks passed
@Martin005 Martin005 deleted the codeblock-closed-and-sourcepos branch October 29, 2025 07:08
@tvanderstad
Copy link
Copy Markdown
Contributor

Thank you so so much for this and the other sourcepos work 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants