Add test for #7155.

This commit is contained in:
John MacFarlane 2021-03-17 09:02:20 -07:00
parent 0b1869fd42
commit e66bf891ec

15
test/command/7155.md Normal file
View file

@ -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"]]
```