- slevel = @level == 0 && @special ? 1 : @level - anchor = nil - link = nil - if @id - if @document.attr? :sectanchors - anchor = %() - link = nil - elsif @document.attr? :sectlinks - anchor = nil - link = %() - if slevel == 0 %h1{:id=>@id, :class=>"sect0"}=%(#{anchor}#{link}#{title}#{link && ''}) =content.chomp - else %div{:class=>["sect#{slevel}", role]} - haml_tag "h#{slevel + 1}##{@id}", %(#{anchor}#{link}#{@numbered ? "#{sectnum} " : nil}#{captioned_title}#{link && ''}) - if slevel == 1 .sectionbody =content.chomp - else =content.chomp