Sha256: f9edf81f3e5196f0ed28b8df40fe6aa24814d67735576bf3d34a3b0f4fd7af7a
Contents?: true
Size: 645 Bytes
Versions: 21
Compression:
Stored size: 645 Bytes
Contents
- slevel = @level == 0 && @special ? 1 : @level - anchor = nil - link = nil - if @id - if @document.attr? :sectanchors - anchor = %(<a class="anchor" href="##{@id}"></a>) - link = nil - elsif @document.attr? :sectlinks - anchor = nil - link = %(<a class="link" href="##{@id}">) - if slevel == 0 h1 id=@id class='sect0' =%(#{anchor}#{link}#{title}#{link && '</a>'}) =content - else div class=["sect#{slevel}",role] *{:tag=>"h#{slevel + 1}", :id=>@id} =%(#{anchor}#{link}#{@numbered ? "#{sectnum} " : nil}#{captioned_title}#{link && '</a>'}) - if slevel == 1 .sectionbody=content - else =content
Version data entries
21 entries across 21 versions & 1 rubygems