Sha256: b9705669998a48c693b8129f90a9b312da045a085006734073da2ad8c06ca80f
Contents?: true
Size: 682 Bytes
Versions: 21
Compression:
Stored size: 682 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.chomp - else %div{:class=>["sect#{slevel}", role]} - haml_tag "h#{slevel + 1}##{@id}", %(#{anchor}#{link}#{@numbered ? "#{sectnum} " : nil}#{captioned_title}#{link && '</a>'}) - if slevel == 1 .sectionbody =content.chomp - else =content.chomp
Version data entries
21 entries across 21 versions & 1 rubygems