git.iko.soy/typeable/pandoc
on master help sign in
Implemented --toc-level for rst.
commit2e0894554ce591488b7e0aebfaecf1fd7dc83c10 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 5 Jan 2013, 11:55 (14 years ago) parent123b94a
2 files changed+4−2
data/templates+1−1 src/Text/Pandoc/Writers/RST.hs+3−1
data/templates+1−1

Submodule changed.

src/Text/Pandoc/Writers/RST.hs+3−1
@@ -79,7 +79,9 @@ pandocToRST (Pandoc (Meta tit auth dat) blocks) = do
7979 let context = writerVariables opts ++
8080 [ ("body", main)
8181 , ("title", render Nothing title)
82− , ("date", render colwidth date) ] ++
82+ , ("date", render colwidth date)
83+ , ("toc", if writerTableOfContents opts then "yes" else "")
84+ , ("toc-level", show (writerTOCLevel opts)) ] ++
8385 [ ("math", "yes") | hasMath ] ++
8486 [ ("author", render colwidth a) | a <- authors ]
8587 if writerStandalone opts