aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-21 09:28:11 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-21 09:28:36 +0200
commit7191fe1f29f2f8b45f9be7e0f8bc9ed889e431d2 (patch)
tree59fbaf540b501c2505950ffa2d4c6b5107f86dae /test/command
parent992943d98e14cc2dd249d6279c8c930dddc5547d (diff)
downloadpandoc-7191fe1f29f2f8b45f9be7e0f8bc9ed889e431d2.tar.gz
LaTeX reader: handle optional args in raw `\titleformat`.
Closes #3804.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3804.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/3804.md b/test/command/3804.md
new file mode 100644
index 000000000..c13c2ef42
--- /dev/null
+++ b/test/command/3804.md
@@ -0,0 +1,6 @@
+```
+% pandoc -t native
+\titleformat{\chapter}[display]{\normalfont\large\bfseries}{第\thechapter{}章}{20pt}{\Huge}
+^D
+[RawBlock (Format "latex") "\\titleformat{\\chapter}[display]{\\normalfont\\large\\bfseries}{\31532\\thechapter{}\31456}{20pt}{\\Huge}"]
+```