aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-25 20:53:32 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-25 20:53:32 +0100
commited6249bd0b36613c293f9a7c5cb6df869d3b52e8 (patch)
tree63d7131306f196734b2f38fc5818b620f5d3069d /src
parentc941a00cac0655349b6c03618bc096ac07237779 (diff)
downloadpandoc-ed6249bd0b36613c293f9a7c5cb6df869d3b52e8.tar.gz
Ms writer: use light gray for strikeout.
Pending groff definitions for striking out an arbitrary section of text (not just a few words).
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index 7d0c278a6..d5f323b5e 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -425,7 +425,9 @@ inlineToMs opts (Strong lst) =
withFontFeature 'B' (inlineListToMs opts lst)
inlineToMs opts (Strikeout lst) = do
contents <- inlineListToMs opts lst
- return $ text "[STRIKEOUT:" <> contents <> char ']'
+ -- we use grey color instead of strikeout, which seems quite
+ -- hard to do in groff for arbitrary bits of text
+ return $ text "\\m[strikecolor]" <> contents <> text "\\m[]"
inlineToMs opts (Superscript lst) = do
contents <- inlineListToMs opts lst
return $ text "\\*{" <> contents <> text "\\*}"