Read the inline nodes and the marks back, and keep the whitespace CommonMark does not strip #41

Merged
lilleman merged 5 commits from inline-nodes-read-back into main 2026-09-02 12:34:20 +02:00
Owner

3i. inline-nodes/ joins the parsing directories: the content slot's text attribute, the :text{text="…"} whitespace spelling, the four directive marks and their nesting order, and the markdown-spelled mark names as named errors.

Settled with the maintainer: :text reads back one run of spaces and tabs, or one run of newlines, and nothing else. The same read found a hole the other way — attemptLine refused a line edged with a vertical tab or a form feed, where CommonMark strips spaces and tabs alone — so that check narrows, and its last cause gone, the check goes with it.

3i. `inline-nodes/` joins the parsing directories: the content slot's `text` attribute, the `:text{text="…"}` whitespace spelling, the four directive marks and their nesting order, and the markdown-spelled mark names as named errors. Settled with the maintainer: `:text` reads back one run of spaces and tabs, or one run of newlines, and nothing else. The same read found a hole the other way — `attemptLine` refused a line edged with a vertical tab or a form feed, where CommonMark strips spaces and tabs alone — so that check narrows, and its last cause gone, the check goes with it.
lilleman added 1 commit 2026-09-01 21:36:07 +02:00
lilleman added 1 commit 2026-09-01 22:11:23 +02:00
lilleman added 1 commit 2026-09-01 22:35:09 +02:00
lilleman added 1 commit 2026-09-01 23:04:27 +02:00
lilleman added 1 commit 2026-09-02 12:28:23 +02:00
lilleman marked the pull request as ready for review 2026-09-02 12:34:12 +02:00
lilleman merged commit f93dda8697 into main 2026-09-02 12:34:20 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/adf-codec#41