From e66bf891ec21cc09611c5be4e4847fccd39e0084 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Wed, 17 Mar 2021 09:02:20 -0700 Subject: [PATCH] Add test for #7155. --- test/command/7155.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command/7155.md diff --git a/test/command/7155.md b/test/command/7155.md new file mode 100644 index 000000000..49358bf97 --- /dev/null +++ b/test/command/7155.md @@ -0,0 +1,15 @@ +``` +% pandoc -f markdown+tex_math_single_backslash -t native +\(x\) \[x\] +\\(x\\) \\[x\\] +^D +[Para [Math InlineMath "x",Space,Math DisplayMath "x",SoftBreak,Str "\\(x\\)",Space,Str "\\[x\\]"]] +``` + +``` +% pandoc -f markdown+tex_math_double_backslash -t native +\(x\) \[x\] +\\(x\\) \\[x\\] +^D +[Para [Str "(x)",Space,Str "[x]",SoftBreak,Math InlineMath "x",Space,Math DisplayMath "x"]] +```