aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-31 22:50:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-31 22:50:51 -0800
commite752669e50815b0c1bef62fc5b1de95c33317f89 (patch)
tree727bbcabf4878b317fe93863c7de26f1eb7316a0 /test/command
parent7c424b315cb814b952d9bd9d5f027beb70169bff (diff)
downloadpandoc-e752669e50815b0c1bef62fc5b1de95c33317f89.tar.gz
LaTeX reader: don't let `\egroup` match `{`.
`braced` now actually requires nested braces. Otherwise some legitimate command and environment definitions can break (see test/command/tex-group.md).
Diffstat (limited to 'test/command')
-rw-r--r--test/command/tex-group.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/tex-group.md b/test/command/tex-group.md
new file mode 100644
index 000000000..277b32142
--- /dev/null
+++ b/test/command/tex-group.md
@@ -0,0 +1,12 @@
+```
+% pandoc -f latex -t html
+\newenvironment{foo}%
+{\emph\bgroup}%
+{\egroup}
+
+\begin{foo}
+hi
+\end{foo}
+^D
+<p><em>hi</em></p>
+```