aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANUAL.txt2
-rw-r--r--data/templates/default.html43
-rw-r--r--data/templates/default.html53
3 files changed, 7 insertions, 1 deletions
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)$
<div id="$idprefix$TOC">
+$if(toc-title)$
+<h2 id="$idprefix$toc-title">$toc-title$</h2>
+$endif$
$table-of-contents$
</div>
$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)$
<nav id="$idprefix$TOC" role="doc-toc">
+$if(toc-title)$
+<h2 id="$idprefix$toc-title">$toc-title$</h2>
+$endif$
$table-of-contents$
</nav>
$endif$