fix(latex): keep more math and verbatim environments whole - #509
Merged
Merged
Conversation
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.
…er into fix/latex-more-envs
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
…er into fix/latex-more-envs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IEEEeqnarraybox,tikzpicture*,loglogaxis,semilogxaxis, andsemilogyaxiswere reflowed as prose.dgroup,dgroup*,darray, anddarray*were reflowed as prose.semiverbatim,verbbox,myverbbox,verbnobox, and themarkdown.styenvironments were reflowed as prose.A
snapper:offline insideverbatim*,lstlisting*, orminted*was treated as a pragma.Those bodies now stay whole. A sentence after each environment still splits.