diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-21 21:40:06 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-21 21:40:06 -0800 |
commit | 8df380486c986141ea448e74cdd37e4faae773a1 (patch) | |
tree | b6a86f65fe2f8e52deea6b2f31957eacf7990072 /src/Text/Pandoc/Options.hs | |
parent | 07e8cedf2bddcbf13bfd69a415107b2a9aa074aa (diff) |
Added `--number-from` option and `writerNumberFrom`.
These still aren't hooked up to anything in the writers.
Diffstat (limited to 'src/Text/Pandoc/Options.hs')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index 1ba8a6dd6..ab5cf4c43 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -270,6 +270,7 @@ data WriterOptions = WriterOptions , writerHTMLMathMethod :: HTMLMathMethod -- ^ How to print math in HTML , writerIgnoreNotes :: Bool -- ^ Ignore footnotes (used in making toc) , writerNumberSections :: Bool -- ^ Number sections in LaTeX + , writerNumberFrom :: Int -- ^ Starting section number , writerSectionDivs :: Bool -- ^ Put sections in div tags in HTML , writerExtensions :: Set Extension -- ^ Markdown extensions that can be used , writerReferenceLinks :: Bool -- ^ Use reference links in writing markdown, rst @@ -313,6 +314,7 @@ instance Default WriterOptions where , writerHTMLMathMethod = PlainMath , writerIgnoreNotes = False , writerNumberSections = False + , writerNumberFrom = 1 , writerSectionDivs = False , writerExtensions = pandocExtensions , writerReferenceLinks = False |