diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-01-23 10:58:44 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-01-23 12:48:49 -0800 |
| commit | 23178ec96e9417bfb178c014f5654bd3d8f24923 (patch) | |
| tree | d45de109c3d392ed2a92607bbacf2737fef0dd15 /src/Text | |
| parent | 14acf8ee68e2a26eae99b11a0b75b467ca390330 (diff) | |
LaTeX reader: Fix bug in macro resolution for environments.
This is a regression in pandoc 3.0 that affects environments
with arguments. Closes #8573.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Readers/LaTeX/Macro.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/Macro.hs b/src/Text/Pandoc/Readers/LaTeX/Macro.hs index c640e2299..29350cd16 100644 --- a/src/Text/Pandoc/Readers/LaTeX/Macro.hs +++ b/src/Text/Pandoc/Readers/LaTeX/Macro.hs @@ -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 |
