diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-25 20:53:32 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-25 20:53:32 +0100 |
commit | ed6249bd0b36613c293f9a7c5cb6df869d3b52e8 (patch) | |
tree | 63d7131306f196734b2f38fc5818b620f5d3069d /src | |
parent | c941a00cac0655349b6c03618bc096ac07237779 (diff) | |
download | pandoc-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.hs | 4 |
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 "\\*}" |