From 155a2ac0391e8b800d8d2ff0fb3ebe5e049ca278 Mon Sep 17 00:00:00 2001 From: Marc Schreiber Date: Sun, 18 Mar 2018 04:59:20 +0100 Subject: Add support to parse unit string of \SI command (closes #4296). --- test/command/3587.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'test/command') 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"]] +``` + -- cgit v1.2.3