diff options
| author | John MacFarlane <[email protected]> | 2017-06-26 16:07:59 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2017-06-26 16:20:09 +0200 |
| commit | 75f4e41d7d292e011a83d06efebc356060ea812b (patch) | |
| tree | b3a3bfcaf61b6a9923b789d65f69132b356c7306 /data/templates/default.rtf | |
| parent | fa515e46f36fa3e73b26b89b721a2de1738cf4e3 (diff) | |
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.
Diffstat (limited to 'data/templates/default.rtf')
| -rw-r--r-- | data/templates/default.rtf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/default.rtf b/data/templates/default.rtf index 59e132b3f..a7f79376d 100644 --- a/data/templates/default.rtf +++ b/data/templates/default.rtf @@ -18,7 +18,7 @@ $if(spacer)$ {\pard \ql \f0 \sa180 \li0 \fi0 \par} $endif$ $if(toc)$ -$toc$ +$table-of-contents$ $endif$ $for(include-before)$ $include-before$ |
