From 8df380486c986141ea448e74cdd37e4faae773a1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 21 Feb 2013 21:40:06 -0800 Subject: Added `--number-from` option and `writerNumberFrom`. These still aren't hooked up to anything in the writers. --- src/Text/Pandoc/Options.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Text/Pandoc/Options.hs') 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 -- cgit v1.2.3