From 75f4e41d7d292e011a83d06efebc356060ea812b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 26 Jun 2017 16:07:59 +0200 Subject: 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. --- data/templates/default.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/default.markdown') diff --git a/data/templates/default.markdown b/data/templates/default.markdown index 95d7e52cc..9f6ca96de 100644 --- a/data/templates/default.markdown +++ b/data/templates/default.markdown @@ -11,7 +11,7 @@ $include-before$ $endfor$ $if(toc)$ -$toc$ +$table-of-contents$ $endif$ $body$ -- cgit v1.2.3