From edca1d1656a03d7de4901a1f6d356094ec9fb2df Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 12 May 2021 11:12:27 -0700 Subject: Plain writer: handle superscript unicode minus. Closes #7276. Note: currently we still get unwanted white space around the minus; this needs to be addressed with a change in texmath. --- src/Text/Pandoc/Writers/Shared.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Shared.hs b/src/Text/Pandoc/Writers/Shared.hs index a09d18571..0b7c6bee0 100644 --- a/src/Text/Pandoc/Writers/Shared.hs +++ b/src/Text/Pandoc/Writers/Shared.hs @@ -394,6 +394,7 @@ toSuperscript '2' = Just '\x00B2' toSuperscript '3' = Just '\x00B3' toSuperscript '+' = Just '\x207A' toSuperscript '-' = Just '\x207B' +toSuperscript '\x2212' = Just '\x207B' -- unicode minus toSuperscript '=' = Just '\x207C' toSuperscript '(' = Just '\x207D' toSuperscript ')' = Just '\x207E' -- cgit v1.2.3