diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-10-28 23:57:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-28 23:57:26 -0600 |
| commit | fcfa4964dc05c5743476bb9a225154e2d6a00a50 (patch) | |
| tree | b457a6e3fe93ccdf1723ab9416bd2c075d3fdca5 /lib | |
| parent | 71a1ced057bafd1f5515c9d876a45312ec9a44ce (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.rb | 3 |
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 |
