diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-25 12:37:04 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-25 12:37:04 -0700 |
commit | 95570ba34c4e7675295b6eefcfcc4dac4ac720af (patch) | |
tree | 0273b7118ae94122d263923b377d4bf79cb44b9c /src/Text/Pandoc/Options.hs | |
parent | 335cd5de4d785f09ae1c14e961df8c4137300252 (diff) |
Moved stateOldDashes to readerOldDashes in ReaderOptions.
Diffstat (limited to 'src/Text/Pandoc/Options.hs')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index ab4dda388..bd04a4373 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -57,7 +57,10 @@ data ReaderOptions = ReaderOptions{ , readerParseRaw :: Bool -- ^ Parse raw HTML, LaTeX , readerColumns :: Int -- ^ Number of columns in terminal , readerTabStop :: Int -- ^ Tab stop - } deriving (Show, Read) + , readerOldDashes :: Bool -- ^ Use pandoc <= 1.8.2.1 behavior + -- in parsing dashes; -- is em-dash; + -- - before numerial is en-dash +} deriving (Show, Read) instance Default ReaderOptions where def = ReaderOptions{ @@ -67,4 +70,5 @@ instance Default ReaderOptions , readerParseRaw = False , readerColumns = 80 , readerTabStop = 4 + , readerOldDashes = False } |