From 689790560271068a9f7b427869260b8ee8e6989e Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Wed, 13 Aug 2014 12:23:03 -0400 Subject: Docx reader: Interpret "Strong" and Emphasis run styles. --- src/Text/Pandoc/Readers/Docx.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs index dcc2122bd..7697c29fa 100644 --- a/src/Text/Pandoc/Readers/Docx.hs +++ b/src/Text/Pandoc/Readers/Docx.hs @@ -214,10 +214,14 @@ runStyleToContainers rPr = resolveFmt bool Nothing = bool formatters = map Container $ mapMaybe id - [ if resolveFmt (rStyle rPr == Just "Bold") (isBold rPr) + [ if resolveFmt + (rStyle rPr `elem` [Just "Strong", Just "Bold"]) + (isBold rPr) then (Just Strong) else Nothing - , if resolveFmt (rStyle rPr == Just "Italic") (isItalic rPr) + , if resolveFmt + (rStyle rPr `elem` [Just"Emphasis", Just "Italic"]) + (isItalic rPr) then (Just Emph) else Nothing , if resolveFmt False (isSmallCaps rPr) -- cgit v1.2.3