diff options
m--------- | data/templates | 10 | ||||
-rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/data/templates b/data/templates -Subproject d541256441c14601977192c2415003b5b357a10 +Subproject 9575f4f56f6c59776938dfcfce7e28405593729 diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index f025e6c81..ac4165116 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -79,7 +79,9 @@ pandocToRST (Pandoc (Meta tit auth dat) blocks) = do let context = writerVariables opts ++ [ ("body", main) , ("title", render Nothing title) - , ("date", render colwidth date) ] ++ + , ("date", render colwidth date) + , ("toc", if writerTableOfContents opts then "yes" else "") + , ("toc-level", show (writerTOCLevel opts)) ] ++ [ ("math", "yes") | hasMath ] ++ [ ("author", render colwidth a) | a <- authors ] if writerStandalone opts |