From 734b4c26a990a334b2bbe352ba34257ebb2a6fcd Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 16 Nov 2020 14:07:31 -0800 Subject: 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. --- test/command/siunitx-negative-numbers.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command/siunitx-negative-numbers.md (limited to 'test') 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 +

33.3 m

+

5

+

-33.3 m

+

-33

+``` -- cgit v1.2.3