Files
pandoc/test
John MacFarlaneandClaude ff53ffe73a LaTeX reader: keep nested conditionals balanced in \iftrue etc.
The parser for \iftrue, \iffalse, and \ifmmode stopped at the first
\else or \fi it saw, so a nested conditional inside a skipped branch
(e.g. an unsupported primitive like \ifdim) made the outer
conditional end early and leaked tokens from the skipped branch.
Replace the sub-parse with a pure token scan that tracks nesting
depth, recognizing TeX's primitive conditionals as well as
\newif-defined ones, and (like TeX) does not expand tokens while
skipping a branch.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-08 16:10:11 -07:00
..
2026-07-10 22:42:10 +02:00
2026-07-12 12:50:54 +02:00
2026-08-16 16:25:00 -07:00
2026-07-12 12:50:54 +02:00