From a09edd1703d9ff103a2157c0b0e910d740ce8629 Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Sun, 24 Nov 2019 02:13:23 +0100 Subject: Add support for $toc-title$ to HTML (4 and 5) (#5930) --- MANUAL.txt | 2 +- data/templates/default.html4 | 3 +++ data/templates/default.html5 | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MANUAL.txt b/MANUAL.txt index 07b2013ba..8c277124e 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -2559,7 +2559,7 @@ on the output format, and include the following: `toc-title` : title of table of contents (works only with EPUB, - opendocument, odt, docx, pptx, beamer, LaTeX) + HTML, opendocument, odt, docx, pptx, beamer, LaTeX) [pandoc-templates]: https://github.com/jgm/pandoc-templates diff --git a/data/templates/default.html4 b/data/templates/default.html4 index 5f9b43e47..f0dd8880e 100644 --- a/data/templates/default.html4 +++ b/data/templates/default.html4 @@ -47,6 +47,9 @@ $endif$ $endif$ $if(toc)$
+$if(toc-title)$ +

$toc-title$

+$endif$ $table-of-contents$
$endif$ diff --git a/data/templates/default.html5 b/data/templates/default.html5 index eff6e73ab..0676215d4 100644 --- a/data/templates/default.html5 +++ b/data/templates/default.html5 @@ -50,6 +50,9 @@ $endif$ $endif$ $if(toc)$ $endif$ -- cgit v1.2.3