Sha256: c9810759f233c3ad007a1a947d8722edc6d64f89e0c4d2bdc1fb2e6d1df199db
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
- unless sections.empty? / XXX: opts[:toclevels] is workaround for Opal (see asciidoctor-templates-compiler) - toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i - slevel = section_level sections.first ol.toc-list class="level-#{slevel}" - sections.each do |sec| li a href="##{sec.id}" =(section_title sec, drop_anchors: true) - if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline') = child_toc
Version data entries
4 entries across 4 versions & 1 rubygems