aboutsummaryrefslogtreecommitdiff
path: root/test/command/6844.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-16 16:36:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-16 16:36:16 -0800
commit5271c6b3fbdc72d6a3e0405718f7c98cdf47eda0 (patch)
tree9744b84668ee382d25e28b4412f1f77831451ecd /test/command/6844.md
parent734b4c26a990a334b2bbe352ba34257ebb2a6fcd (diff)
downloadpandoc-5271c6b3fbdc72d6a3e0405718f7c98cdf47eda0.tar.gz
Improve fix to siunitx numbers with minus.
- use real minus sign - use tests contributed by Igor Pashev.
Diffstat (limited to 'test/command/6844.md')
-rw-r--r--test/command/6844.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/6844.md b/test/command/6844.md
new file mode 100644
index 000000000..0431cfed8
--- /dev/null
+++ b/test/command/6844.md
@@ -0,0 +1,27 @@
+Negative numbers with siunitx
+
+```
+% pandoc -f latex -t native
+\SI{123}{\celsius}
+
+^D
+[Para [Str "123\160\176C"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{-123}{\celsius}
+
+^D
+[Para [Str "\8722\&123\160\176C"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{+123}{\celsius}
+
+^D
+[Para [Str "123\160\176C"]]
+```
+
+