git.iko.soy/typeable/pandoc
on master help sign in
Added defaultWriterOptions to Shared.hs.
3456355fiddlosopher
src/Text/Pandoc/Shared.hs+15
@@ -58,6 +58,7 @@ module Text.Pandoc.Shared (
58 compactify,
58 compactify,
59 generateReference,
59 generateReference,
60 WriterOptions (..),
60 WriterOptions (..),
61+ defaultWriterOptions,
61 KeyTable,
62 KeyTable,
62 keyTable,
63 keyTable,
63 lookupKeySrc,
64 lookupKeySrc,
@@ -349,6 +350,20 @@ data WriterOptions = WriterOptions
349 , writerNotes :: [Block] -- ^ List of note blocks
350 , writerNotes :: [Block] -- ^ List of note blocks
350 } deriving Show
351 } deriving Show
351
352
353+-- | Default writer options.
354+defaultWriterOptions =
355+ WriterOptions { writerStandalone = True,
356+ writerHeader = "",
357+ writerTitlePrefix = "",
358+ writerTabStop = 4,
359+ writerNotes = [],
360+ writerS5 = False,
361+ writerIncremental = False,
362+ writerNumberSections = False,
363+ writerIncludeBefore = "",
364+ writerIncludeAfter = "",
365+ writerStrictMarkdown = False }
366+
352--
367--
353-- Functions for constructing lists of reference keys
368-- Functions for constructing lists of reference keys
354--
369--