git.iko.soy/typeable/pandoc
on master help sign in
Docx Reader: Single underlines are "emph"

All other underlines are ignored.

commit57939a9282a4b339a3d3db3fd9fd7835701c8e39 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 31 Jul 2014, 18:44 (12 years ago) parent0565a81
1 file changed+2−1
src/Text/Pandoc/Readers/Docx.hs+2−1
src/Text/Pandoc/Readers/Docx.hs+2−1
@@ -219,7 +219,8 @@ runStyleToContainers rPr =
219219 , if isStrike rPr then (Just Strikeout) else Nothing
220220 , if isSuperScript rPr then (Just Superscript) else Nothing
221221 , if isSubScript rPr then (Just Subscript) else Nothing
222− , rUnderline rPr >>= (\f -> Just $ Span ("", [], [("underline", f)]))
222+ , rUnderline rPr >>=
223+ (\f -> if f == "single" then (Just Emph) else Nothing)
223224 ]
224225 in
225226 classContainers ++ formatters