aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/RST.hs4
1 files changed, 3 insertions, 1 deletions
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