summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-10-28 23:57:26 -0600
committerGitHub <noreply@github.com>2021-10-28 23:57:26 -0600
commitfcfa4964dc05c5743476bb9a225154e2d6a00a50 (patch)
treeb457a6e3fe93ccdf1723ab9416bd2c075d3fdca5 /lib
parent71a1ced057bafd1f5515c9d876a45312ec9a44ce (diff)
resolves #4101 add support for role on thematic break to HTML converter (PR #4196)
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