lib/isodoc/rsd/html/scripts.html in metanorma-rsd-1.1.3 vs lib/isodoc/rsd/html/scripts.html in metanorma-rsd-1.1.4
- old
+ new
@@ -1,8 +1,8 @@
<script>
//TOC generation
$('#toc').toc({
- 'selectors': 'h1,h2:not(.TermNum)', //elements to use as headings
+ 'selectors': toclevel(), //elements to use as headings
'container': 'main', //element to find all selectors in
'smoothScrolling': true, //enable or disable smooth scrolling on click
'prefix': 'toc', //prefix for anchor tags and class names
'onHighlight': function(el) {}, //called when a new section is highlighted
'highlightOnScroll': true, //add class to heading that is currently in focus