aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Docx.hs8
1 files changed, 6 insertions, 2 deletions
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)