aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-20 10:49:31 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-20 10:49:42 -0700
commitbccfb1177f93c7cdf79d0f9dc2087866db16d053 (patch)
tree66ebb935301ffdd2501e88ecbcbce12d478036c7 /src
parent08179695fa9741b9d617f1b7729f2dd2476b4f27 (diff)
downloadpandoc-bccfb1177f93c7cdf79d0f9dc2087866db16d053.tar.gz
Man reader: support `\*[lq]`, `\*[rq]`.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 7c54944e3..1f8e3bf1e 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -186,8 +186,8 @@ escapeLexer = do
choice
[ ("\xae" <$ char 'R')
, ("" <$ char 'S') -- switch back to default font size
- , ("\x201c" <$ try (string "(lq"))
- , ("\x201d" <$ try (string "(rq"))
+ , ("\x201c" <$ try (string "(lq") <|> try (string "[lq]"))
+ , ("\x201d" <$ try (string "(rq") <|> try (string "[rq]"))
, ("" <$ try (string "(HF" >>
modifyState (\r -> r {fontKind = singleton Bold})))
, ("\x2122" <$ try (string "(Tm"))