diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-07 05:43:23 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-07 05:43:23 +0000 |
commit | fdf31cd23d85e9615c891edadb726137150c5384 (patch) | |
tree | 09209322e496fdef91f5deae79b2438e1ff60ad9 /src/Text | |
parent | 98372ea277e698c44ed192d56fff68a041233315 (diff) | |
download | pandoc-fdf31cd23d85e9615c891edadb726137150c5384.tar.gz |
Added writerTableOfContents to WriterOptions, and added a
--table-of-contents/--toc command-line option to Main.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@632 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 00a467ca4..d0b134534 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -375,6 +375,7 @@ data WriterOptions = WriterOptions , writerHeader :: String -- ^ Header for the document , writerIncludeBefore :: String -- ^ String to include before the body , writerIncludeAfter :: String -- ^ String to include after the body + , writerTableOfContents :: Bool -- ^ Include table of contents , writerS5 :: Bool -- ^ We're writing S5 , writerIncremental :: Bool -- ^ Incremental S5 lists , writerNumberSections :: Bool -- ^ Number sections in LaTeX @@ -386,17 +387,18 @@ data WriterOptions = WriterOptions -- | Default writer options. defaultWriterOptions = - WriterOptions { writerStandalone = True, - writerHeader = "", - writerTitlePrefix = "", - writerTabStop = 4, - writerS5 = False, - writerIncremental = False, - writerNumberSections = False, - writerIncludeBefore = "", - writerIncludeAfter = "", - writerStrictMarkdown = False, - writerReferenceLinks = False } + WriterOptions { writerStandalone = True, + writerHeader = "", + writerTitlePrefix = "", + writerTabStop = 4, + writerTableOfContents = False, + writerS5 = False, + writerIncremental = False, + writerNumberSections = False, + writerIncludeBefore = "", + writerIncludeAfter = "", + writerStrictMarkdown = False, + writerReferenceLinks = False } -- -- code to lookup reference keys in key table |