Skip to content

keep multi-line embedded markup on one line under line numbering - #835

Merged
opoudjis merged 1 commit into
mainfrom
fix/linenums-multiline-markup
Aug 11, 2026
Merged

keep multi-line embedded markup on one line under line numbering#835
opoudjis merged 1 commit into
mainfrom
fix/linenums-multiline-markup

Conversation

@opoudjis

Copy link
Copy Markdown
Contributor

Closes metanorma/metanorma-pdfa#84

Sourcecode markup ({{{...}}}) whose serialisation spans multiple lines —
e.g. pretty-printed MathML from stem — was sliced across the line cells
of the %linenums highlighting table, leaving unbalanced tags whose
reparse corrupted the table and crashed rendering. Whitespace inside
embedded markup elements is now collapsed before lexing, so each
element occupies a single code line. tr_parse additionally gains
argument defaults so a stray tr renders instead of crashing.

🤖

@opoudjis opoudjis self-assigned this Aug 10, 2026
@opoudjis
opoudjis merged commit 23ff2cf into main Aug 11, 2026
14 checks passed
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.

BUG: enabling "%linenums" on a source code block causes fail/crash

1 participant