- 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 - else div class=["sect#{slevel}",role] *{:tag=>"h#{slevel + 1}", :id=>@id} =%(#{anchor}#{link}#{@numbered ? "#{sectnum} " : nil}#{captioned_title}#{link && ''}) - if slevel == 1 .sectionbody=content - else =content