aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorMarc Schreiber <schrieveslaach@online.de>2018-03-18 04:59:20 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-17 20:59:20 -0700
commit155a2ac0391e8b800d8d2ff0fb3ebe5e049ca278 (patch)
tree1f5cad382b91025f73334114deaa0fc7924b39f7 /test/command
parent14cc82bcc7097351872dc233351627c90fb2a514 (diff)
downloadpandoc-155a2ac0391e8b800d8d2ff0fb3ebe5e049ca278.tar.gz
Add support to parse unit string of \SI command (closes #4296).
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3587.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/command/3587.md b/test/command/3587.md
index addb6c582..414593b39 100644
--- a/test/command/3587.md
+++ b/test/command/3587.md
@@ -19,3 +19,39 @@
^D
[Para [Str "{}\160{}\160{}"]]
```
+
+```
+% pandoc -f latex -t native
+\SI{30}{\milli\meter}
+^D
+[Para [Str "30\160mm"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{6}{\gram}
+^D
+[Para [Str "6\160g"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{25}{\square\meter}
+^D
+[Para [Str "25\160m\178"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{18.2}{\degreeCelsius}
+^D
+[Para [Str "18.2\160\176C"]]
+```
+
+```
+% pandoc -f latex -t native
+\SI{18.2}{\celsius}
+^D
+[Para [Str "18.2\160\176C"]]
+```
+