git.iko.soy/typeable/pandoc
on master help sign in
Canonical way to set TOC depth
e5d22ceAditya Mahajan
default.context+5−1
@@ -45,6 +45,10 @@ $endif$
45 indentnext=no,
45 indentnext=no,
46 ]
46 ]
47
47
48+$if(toc)$
49+\setupcombinedlist[content][list={$placelist$}]
50+$endif$
51+
48$for(header-includes)$
52$for(header-includes)$
49$header-includes$
53$header-includes$
50$endfor$
54$endfor$
@@ -69,7 +73,7 @@ $for(include-before)$
69$include-before$
73$include-before$
70$endfor$
74$endfor$
71$if(toc)$
75$if(toc)$
72−\placelist[$placelist$]
76+\placecontent
73$endif$
77$endif$
74
78
75$body$
79$body$