Skip to content

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

Open
BetterAndBetterII wants to merge 1 commit into
executablebooks:masterfrom
BetterAndBetterII:fix/dollarmath-blockquote-prefix
Open

fix: strip nested prefixes from multi-line dollarmath blocks#152
BetterAndBetterII wants to merge 1 commit into
executablebooks:masterfrom
BetterAndBetterII:fix/dollarmath-blockquote-prefix

Conversation

@BetterAndBetterII

Copy link
Copy Markdown

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

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.

1 participant