From 10615420dec27756baa2d4a6881d00c2e28d9cc1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 4 Jun 2019 21:20:11 -0700 Subject: 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. --- test/command/5439.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/command/5439.md (limited to 'test/command') 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 +``` -- cgit v1.2.3