summaryrefslogtreecommitdiff
path: root/bin/template.html
diff options
context:
space:
mode:
Diffstat (limited to 'bin/template.html')
-rw-r--r--bin/template.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/template.html b/bin/template.html
index e3d570ee4..881f3f2e3 100644
--- a/bin/template.html
+++ b/bin/template.html
@@ -54,7 +54,13 @@ $endif$
$endif$
$if(toc)$
<nav id="$idprefix$TOC">
-$table-of-contents$
+$if(table-of-contents)$
+ <!-- pandoc >= 2.0 -->
+ $table-of-contents$
+$else$
+ <!-- pandoc < 2.0 -->
+ $toc$
+$endif$
</nav>
$endif$
$body$