diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-06-25 23:51:16 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-06-25 23:51:16 -0700 |
commit | 9f694619cd62992097df25690b1fbfe964d6c32e (patch) | |
tree | 7c6b8624678ae8bb9ea98ad21ad9e9f48279b357 /src/Text/Pandoc/Options.hs | |
parent | 2b958a2d03ef60cd1b843dc318b5164e816ecc87 (diff) | |
parent | 74676df75f0ab109aae2b1843c26058dfff04297 (diff) | |
download | pandoc-9f694619cd62992097df25690b1fbfe964d6c32e.tar.gz |
Merge pull request #1374 from jkr/track-changes-options
Track changes with options
Diffstat (limited to 'src/Text/Pandoc/Options.hs')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index 611a6bb06..b7a3a4b7b 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -41,6 +41,7 @@ module Text.Pandoc.Options ( Extension(..) , HTMLSlideVariant (..) , EPUBVersion (..) , WriterOptions (..) + , TrackChanges (..) , def , isEnabled ) where @@ -211,6 +212,7 @@ data ReaderOptions = ReaderOptions{ -- indented code blocks , readerDefaultImageExtension :: String -- ^ Default extension for images , readerTrace :: Bool -- ^ Print debugging info + , readerTrackChanges :: TrackChanges } deriving (Show, Read) instance Default ReaderOptions @@ -227,6 +229,7 @@ instance Default ReaderOptions , readerIndentedCodeClasses = [] , readerDefaultImageExtension = "" , readerTrace = False + , readerTrackChanges = AcceptChanges } -- @@ -264,6 +267,12 @@ data HTMLSlideVariant = S5Slides | NoSlides deriving (Show, Read, Eq) +-- | Options for accepting or rejecting MS Word track-changes. +data TrackChanges = AcceptChanges + | RejectChanges + | AllChanges + deriving (Show, Read, Eq) + -- | Options for writers data WriterOptions = WriterOptions { writerStandalone :: Bool -- ^ Include header and footer |