Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 29, 2025
1 parent 92151f4 commit 40a00b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion document/templates/html5/block_example.haml.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%div{:id=>@id, :class=>['exampleblock', role]}
%aside{:id=>@id, :class=>['example', role]}
- if title?
.title=captioned_title
.content
Expand Down
2 changes: 1 addition & 1 deletion document/templates/html5/section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%h1{:id=>@id, :class=>"sect0"}=%(#{anchor}#{link}#{title}#{link && '</a>'})
=content
- else
%section{:class=>["sect#{slevel}", role]}
%section{:class=>["sect#{slevel}", role],:id=>@id}
- snum = @numbered && @caption.nil? && slevel <= (@document.attr 'sectnumlevels', 3).to_i ? %(#{sectnum} ) : nil
- haml_tag "h#{slevel + 1}##{@id}", %(#{anchor}#{link}#{snum}#{captioned_title}#{link && '</a>'})
- if slevel == 1
Expand Down

0 comments on commit 40a00b2

Please sign in to comment.