diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-11-16 14:07:31 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-11-16 14:08:29 -0800 |
commit | 734b4c26a990a334b2bbe352ba34257ebb2a6fcd (patch) | |
tree | cd06aa1f189192713d486355496337b304f71b68 /test | |
parent | dcf99f29e0c439c893fb4fd0df0931b482e35c6b (diff) | |
download | pandoc-734b4c26a990a334b2bbe352ba34257ebb2a6fcd.tar.gz |
LaTeX reader: Fix negative numbers in siunitx commands.
The commit a157e1a broke negative numbers, e.g.
`\SI{-33}{\celcius}` or `\num{-3}`. This fixes the regression.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/siunitx-negative-numbers.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command/siunitx-negative-numbers.md b/test/command/siunitx-negative-numbers.md new file mode 100644 index 000000000..56cdbe31d --- /dev/null +++ b/test/command/siunitx-negative-numbers.md @@ -0,0 +1,15 @@ +``` +% pandoc -f latex +\SI{+33.3}{\m} + +\num{+5} + +\SI{-33.3}{\m} + +\num{-33} +^D +<p>33.3 m</p> +<p>5</p> +<p>-33.3 m</p> +<p>-33</p> +``` |