Sha256: dece15669dbf6ab04197d3e9a9cc4703080d2aa3d98f3c50e6640ef7134a7a14
Contents?: true
Size: 541 Bytes
Versions: 21
Compression:
Stored size: 541 Bytes
Contents
- if @document.attr? :toc - toc_id = @id - toc_role = (attr 'role', (@document.attr 'toc-class', 'toc')) - toc_title_id = nil - toc_title = title? ? title : (@document.attr 'toc-title') - if !toc_id && (@document.embedded? || !(@document.attr? 'toc-placement')) - toc_id = 'toc' - toc_title_id = 'toctitle' %div{:id=>toc_id, :class=>toc_role} .title{:id=>toc_title_id}=toc_title =Asciidoctor::HTML5::DocumentTemplate.outline(@document, (attr? :levels) ? (attr :levels).to_i : (@document.attr :toclevels, 2).to_i)
Version data entries
21 entries across 21 versions & 1 rubygems