pandoc/test/command/7494.md

63 lines
545 B
Markdown
Raw Normal View History

```
% pandoc -f latex -t plain
\def\foo{BAR}
{\foo
\def\foo{BAZ}
\foo
}
\foo
^D
BAR BAZ BAR
```
```
% pandoc -f latex -t plain
\def\foo{BAR}
{\foo
\gdef\foo{BAZ}
\foo
}
\foo
^D
BAR BAZ BAZ
```
```
% pandoc -f latex -t plain
\def\foo{BAR}
{\foo
\global\def\foo{BAZ}
\foo
}
\foo
^D
BAR BAZ BAZ
```
```
% pandoc -f latex -t plain
\newcommand{\aaa}{BBB}
{
\renewcommand{\aaa}{AAA}
\aaa
}
\aaa
^D
AAA BBB
```
```
% pandoc -f latex -t markdown
\newcommand{\aaa}{BBB}
\begin{quote}
\renewcommand{\aaa}{AAA}
\aaa
\end{quote}
\aaa
^D
> AAA
BBB
```