git.iko.soy/typeable/pandoc
on master help sign in
Support --toc-depth in context writer.
commit65d01857fbb4041b68ce3767773c151b4f135a27 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 5 Jan 2013, 18:14 (14 years ago) parentf9799c2
2 files changed+7−1
data/templates+1−1 src/Text/Pandoc/Writers/ConTeXt.hs+6
data/templates+1−1

Submodule changed.

src/Text/Pandoc/Writers/ConTeXt.hs+6
@@ -74,6 +74,12 @@ pandocToConTeXt options (Pandoc (Meta title authors date) blocks) = do
7474 let main = (render colwidth . vcat) body
7575 let context = writerVariables options ++
7676 [ ("toc", if writerTableOfContents options then "yes" else "")
77+ , ("placelist", intercalate "," $
78+ take (writerTOCDepth options + if writerChapters options
79+ then 0
80+ else 1)
81+ ["chapter","section","subsection","subsubsection",
82+ "subsubsubsection","subsubsubsubsection"])
7783 , ("body", main)
7884 , ("title", titletext)
7985 , ("date", datetext) ] ++