Skip to content

fix: strip nested prefixes from multi-line dollarmath blocks - #152

Merged
chrisjsewell merged 5 commits into
executablebooks:masterfrom
BetterAndBetterII:fix/dollarmath-blockquote-prefix
Nov 9, 2026
Merged

chrisjsewell merged 5 commits into
executablebooks:masterfrom
BetterAndBetterII:fix/dollarmath-blockquote-prefix

Conversation

@BetterAndBetterII

Copy link
Copy Markdown
Contributor

Multi-line $$ math inside a blockquote was keeping the > prefix in the equation, which rendered as >.

The block parser took a raw src slice from the opening $$ to the closing one. Parent block rules rewrite bMarks so each line's content starts after the container prefix, but a contiguous slice still includes those prefixes on later lines. Content is now built per line from bMarks.

Fixes #125

BetterAndBetterII and others added 5 commits August 29, 2026 19:35
…cases

Add fixtures for a multi-line $$ block in a nested blockquote and with content on the delimiter lines, and a unit test for a blank '>' line with allow_blank_lines=True (the fixture harness runs with allow_blank_lines=False).
@chrisjsewell
chrisjsewell merged commit 35fb741 into executablebooks:master Nov 9, 2026
11 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.

Dollarmath math blocks inside blockquotes retains ">" in the equation.

2 participants