75f4e41d7d
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.
232 B
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