Sha256: be7d9c6463ca78bddafbad280efe0335c407154b0cce724b48fb1d29a7a3fb6c
Contents?: true
Size: 560 Bytes
Versions: 59
Compression:
Stored size: 560 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') - toc_levels = (attr? :levels) ? (attr :levels).to_i : (@document.attr :toclevels, 2).to_i - 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, toc_levels)
Version data entries
59 entries across 26 versions & 2 rubygems