data/templates/toc.html.slim in asciidoctor-html5s-0.1.0.beta.3 vs data/templates/toc.html.slim in asciidoctor-html5s-0.1.0.beta.4

- old
+ new

@@ -1,9 +1,11 @@ / This template is used only for toc::[] macro; for document and preamble TOC / see document.html, preamble.html and _toc.html. -- if document.attr? :toc +- if document.attr?(:toc) && document.sections? - toc_id = id || ('toc' if document.embedded? || !document.attr?('toc-placement')) nav id=toc_id class=(attr :role, (document.attr 'toc-class', 'toc')) role='doc-toc' - h level=(section_level + 2) id=("#{toc_id}-title" if toc_id) + h level=(level + 2) id=("#{toc_id}-title" if toc_id) =(title || (document.attr 'toc-title')) / Renders outline.html. = converter.convert document, 'outline', :toclevels=>((attr :levels).to_i if attr? :levels) +- else + /! toc disabled