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.
commitedca1d1656a03d7de4901a1f6d356094ec9fb2df
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 12 May 2021, 11:12 (5 years ago)
parent0217ae2
src/Text/Pandoc/Writers/Shared.hs+1
@@ -394,6 +394,7 @@ toSuperscript '2' = Just '\x00B2'
394394toSuperscript '3' = Just '\x00B3'
395395toSuperscript '+' = Just '\x207A'
396396toSuperscript '-' = Just '\x207B'
397+toSuperscript '\x2212' = Just '\x207B' -- unicode minus
397398toSuperscript '=' = Just '\x207C'
398399toSuperscript '(' = Just '\x207D'
399400toSuperscript ')' = Just '\x207E'