mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 05:35:38 +00:00
56 lines
468 B
Markdown
56 lines
468 B
Markdown
```
|
|
% pandoc -f latex -t plain
|
|
\iftrue
|
|
should print
|
|
\iftrue
|
|
should print
|
|
\else
|
|
should not print A
|
|
\fi
|
|
\else
|
|
should not print B
|
|
\fi
|
|
|
|
\iffalse
|
|
should not print C
|
|
\else
|
|
\iftrue
|
|
should print
|
|
\else
|
|
should not print D
|
|
\fi
|
|
\fi
|
|
|
|
\newif\ifepub
|
|
|
|
\ifepub
|
|
should not print E
|
|
\fi
|
|
|
|
\epubtrue
|
|
|
|
\ifepub
|
|
should print
|
|
\else
|
|
should not print F
|
|
\fi
|
|
|
|
\epubfalse
|
|
|
|
\ifepub
|
|
should not print G
|
|
\else
|
|
should print
|
|
\fi
|
|
^D
|
|
should print
|
|
|
|
should print
|
|
|
|
should print
|
|
|
|
should print
|
|
|
|
should print
|
|
```
|