diff options
| author | John MacFarlane <[email protected]> | 2025-06-08 13:16:47 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-06-08 13:17:46 -0700 |
| commit | f3b23afc94e32dcd43f2b084b9b284214faca113 (patch) | |
| tree | ff4bccedb01e5e622a243f9cb085ee5415b999a8 /src | |
| parent | 58daa8e2e828cd17cc20bc02608b76a5ba086d30 (diff) | |
Docx reader: don't add highlighting if highlight color is "none."
Closes #10900.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Readers/Docx.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs index 8e63b1be1..5c1859b13 100644 --- a/src/Text/Pandoc/Readers/Docx.hs +++ b/src/Text/Pandoc/Readers/Docx.hs @@ -305,7 +305,8 @@ runStyleToTransform rPr' = do emph . go rPr{isItalic = Nothing, isItalicCTL = Nothing} | Just True <- bold rPr = strong . go rPr{isBold = Nothing, isBoldCTL = Nothing} - | Just _ <- rHighlight rPr = + | Just v <- rHighlight rPr + , v /= "none" = spanWith ("",["mark"],[]) . go rPr{rHighlight = Nothing} | Just True <- isSmallCaps rPr = smallcaps . go rPr{isSmallCaps = Nothing} |
