diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-03 11:57:07 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-03 11:57:07 +0100 |
commit | 23e6495624682f0c8d130a3f6db5dc60056015fa (patch) | |
tree | de7558f1c8b8b6f97ba6cf0127e7baa95ddb824c /src/Text/Pandoc/Readers/Docx.hs | |
parent | 5cd475be7057487ba4f63e2257b6f65b975acd58 (diff) |
Docx reader: Don't drop smartTag contents.
This just parses inside smartTags and yields their contents,
ignoring the attributes of the smartTag. @jkr, you may want
to adjust this, but I wanted to get a fix in as fast as possible
for the dropped content.
Closes #2242; see also #3412.
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/Docx.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs index 490fdf878..2b92cceee 100644 --- a/src/Text/Pandoc/Readers/Docx.hs +++ b/src/Text/Pandoc/Readers/Docx.hs @@ -411,6 +411,9 @@ parPartToInlines (ExternalHyperLink target runs) = do return $ link target "" ils parPartToInlines (PlainOMath exps) = do return $ math $ writeTeX exps +parPartToInlines (SmartTag runs) = do + ils <- smushInlines <$> mapM runToInlines runs + return ils isAnchorSpan :: Inline -> Bool isAnchorSpan (Span (_, classes, kvs) _) = |