diff options
| author | John MacFarlane <[email protected]> | 2024-09-24 08:53:32 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-09-24 08:53:32 -0700 |
| commit | 56fc7d5cfce2d3a7cb9084533f0579d9c506b21c (patch) | |
| tree | 55cbde4237b0d1684aa0e5a0c2edd929d0e28c72 /src | |
| parent | f3fff87b2c5987c360bab425f5a7187cfb8342d9 (diff) | |
LaTeX reader: add em, ex, px, mu to list of units for dimension args.
Closes #10212.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Readers/LaTeX/Parsing.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs index e5382e306..a53b9092f 100644 --- a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs +++ b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs @@ -898,7 +898,11 @@ dimenarg = try $ do let s = s1 <> s2 let (num, rest) = T.span (\c -> isDigit c || c == '.') s guard $ T.length num > 0 - guard $ rest `elem` ["", "pt","pc","in","bp","cm","mm","dd","cc","sp"] + guard $ rest `elem` + ["", "pt","pc","in","bp","cm","mm","dd","cc","sp","ex","em", + "mu", -- "mu" in math mode only + "px" -- "px" with pdftex and luatex only + ] return $ T.pack ['=' | ch] <> minus <> s ignore :: (Monoid a, PandocMonad m) => Text -> ParsecT s u m a |
