aboutsummaryrefslogtreecommitdiff
path: root/test/command/5439.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-06-04 21:20:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-06-04 21:20:11 -0700
commit10615420dec27756baa2d4a6881d00c2e28d9cc1 (patch)
tree762ae8108f0d87639c1ad48d999c84e7fbd7750b /test/command/5439.md
parentad9770fe86d0f7d9e8ccfe09eada1e7a60ef3d25 (diff)
downloadpandoc-10615420dec27756baa2d4a6881d00c2e28d9cc1.tar.gz
Include trailing {}s in raw latex commands.
Change is in rawLaTeXInline in LaTeX reader, but it affects the markdown reader and other readers that allow raw LaTeX. Previously, trailing `{}` would be included for unknown commands, but not for known commands. However, they are sometimes used to avoid a trailing space after the command. The chances that a `{}` after a LaTeX command is not part of the command are very small. Closes #5439.
Diffstat (limited to 'test/command/5439.md')
-rw-r--r--test/command/5439.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/5439.md b/test/command/5439.md
new file mode 100644
index 000000000..b021161fd
--- /dev/null
+++ b/test/command/5439.md
@@ -0,0 +1,6 @@
+```
+% pandoc -t latex
+namespace\fshyp{}container
+^D
+namespace\fshyp{}container
+```