Skip to content

fix(latex): keep more math and verbatim environments whole - #509

Merged
HaoZeke merged 16 commits into
mainfrom
fix/latex-more-envs
Sep 26, 2026
Merged

HaoZeke merged 16 commits into
mainfrom
fix/latex-more-envs

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

IEEEeqnarraybox, tikzpicture*, loglogaxis, semilogxaxis, and semilogyaxis were reflowed as prose.

dgroup, dgroup*, darray, and darray* were reflowed as prose.

semiverbatim, verbbox, myverbbox, verbnobox, and the markdown.sty environments were reflowed as prose.

A snapper:off line inside verbatim*, lstlisting*, or minted* was treated as a pragma.

Those bodies now stay whole. A sentence after each environment still splits.

HaoZeke and others added 16 commits September 26, 2026 04:34
IEEEeqnarraybox, tikzpicture*, and the pgfplots log and semilog axes
stay structure. semiverbatim, the verbatimbox environments, and the
markdown.sty markdown environments stay code.
The code-region check required the closing brace immediately after the
name, so a star kept the body out of the region. A snapper:off line
inside that body is no longer a pragma.
dgroup, dgroup*, darray, and darray* are display math. Their bodies
stay structure, and a sentence after the environment still splits.
rustfmt wants the format string on its own line.
Case folding turns BVerbatim into bverbatim, so the verbatim arm
never matches. alltt, luacode, and luacode* were also outside the
code region, so a snapper:off inside them was a pragma.
groupplot, smithchart, smithchartaxis, polaraxis, and ternaryaxis
stay structure, same as axis and loglogaxis. Prose after each
environment still splits.
A period before a backtick and a capital stays inside the open
span. The same glue holds when an org equals span hides a paren.
fix(pandoc): shield alltt, BVerbatim, and luacode
The axis names stay in the non-prose list beside the shield and
verbatim additions from the base.
fix(latex): keep pgfplots axis bodies whole
@HaoZeke
HaoZeke merged commit d80ff9b into main Sep 26, 2026
24 checks passed
@HaoZeke
HaoZeke deleted the fix/latex-more-envs branch September 26, 2026 11:46
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.

1 participant