diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-12 11:12:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-12 11:12:27 -0700 |
commit | edca1d1656a03d7de4901a1f6d356094ec9fb2df (patch) | |
tree | f66674fb73365ecaa0ab5e09015ae3496b4bb894 /src/Text/Pandoc | |
parent | 0217ae2a4ffe33bee7cc53ba44817cd540b5f01e (diff) | |
download | pandoc-edca1d1656a03d7de4901a1f6d356094ec9fb2df.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/Shared.hs | 1 |
1 files changed, 1 insertions, 0 deletions
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' |