summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/converter/html5.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb
index 4056fb96..891ec6ce 100644
--- a/lib/asciidoctor/converter/html5.rb
+++ b/lib/asciidoctor/converter/html5.rb
@@ -839,7 +839,8 @@ Your browser does not support the audio tag.
end
def convert_thematic_break node
- %(<hr#{@void_element_slash}>)
+ class_attribute = node.role ? %( class="#{node.role}") : ''
+ %(<hr#{class_attribute}#{@void_element_slash}>)
end
def convert_sidebar node