diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-20 08:15:48 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-20 08:16:46 -0700 |
commit | 8437a4a002210a33ee721c58f5f95605898a8e1b (patch) | |
tree | 13fe56178172d0a3a6a032a73f3adcd5f1671e9e /src/Text/Pandoc | |
parent | b6239f41509c368b5befd316c290b5b6cc6f00e3 (diff) | |
download | pandoc-8437a4a002210a33ee721c58f5f95605898a8e1b.tar.gz |
LaTeX reader: support `\pm` in `SI{..}`.
Closes #6620.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX/SIunitx.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs b/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs index 1952f4e1a..c4fb06700 100644 --- a/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs +++ b/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs @@ -45,7 +45,9 @@ doSI tok = do unit] doSInum :: PandocMonad m => LP m Inlines -doSInum = skipopts *> (tonum . untokenize <$> braced) +doSInum = skipopts *> (tonum . untokenize . map convertPM <$> braced) + where convertPM (Tok pos (CtrlSeq "pm") _) = Tok pos Word "\xb1\xa0" + convertPM t = t tonum :: Text -> Inlines tonum value = |