mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
LaTeX reader: Fix bug in macro resolution for environments.
This is a regression in pandoc 3.0 that affects environments with arguments. Closes #8573.
This commit is contained in:
@@ -216,7 +216,7 @@ newenvironment = do
|
||||
let result = (name,
|
||||
Macro GroupScope ExpandWhenUsed argspecs optarg
|
||||
(bg:startcontents),
|
||||
Macro GroupScope ExpandWhenUsed argspecs optarg
|
||||
Macro GroupScope ExpandWhenUsed [] Nothing
|
||||
(endcontents ++ [eg]))
|
||||
(do lookupMacro name
|
||||
case mtype of
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
```
|
||||
% pandoc -f latex -t plain
|
||||
\newenvironment{myenv}[1]{Open#1}{Close}
|
||||
\begin{myenv}{x}Hello\end{myenv}
|
||||
^D
|
||||
OpenxHelloClose
|
||||
```
|
||||
Reference in New Issue
Block a user