pandoc/data/templates/default.markdown
John MacFarlane 75f4e41d7d Use table-of-contents for contents of toc, make toc a boolean.
Changed markdown, rtf, and HTML-based templates accordingly.

This allows you to set `toc: true` in the metadata; this
previously produced strange results in some output formats.

Closes #2872.

For backwards compatibility, `toc` is still set to the
toc contents.  But it is recommended that you update templates
to use `table-of-contents` for the toc contents and `toc`
for a boolean flag.
2017-06-26 16:20:09 +02:00

232 B

if(titleblock) titleblock

endif for(header-includes) header-includes

endfor for(include-before) include-before

endfor if(toc) table-of-contents

endif body for(include-after)

include-after endfor