summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2022-12-20 17:30:35 +0300
committerMarat Radchenko <marat@slonopotamus.org>2022-12-20 17:30:35 +0300
commit497f3f34c19c5a1858365de4b1cab02995fb83a9 (patch)
treedb38134e169ee17e80a859d5d4c688eaf732781d
parentc39d2159a8c329e2e2179a12c6cd7f4b39898f74 (diff)
resolves #420 output custom admonition roles
-rw-r--r--lib/asciidoctor-epub3/converter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb
index 7843c4d..f0de2bd 100644
--- a/lib/asciidoctor-epub3/converter.rb
+++ b/lib/asciidoctor-epub3/converter.rb
@@ -546,7 +546,7 @@ document.addEventListener('DOMContentLoaded', function(event, reader) {
logger.warn %(unknown admonition type: #{type})
'notice'
end
- %(<aside#{id_attr} class="admonition #{type}"#{title_attr} epub:type="#{epub_type}">
+ %(<aside#{id_attr} class="admonition #{type}#{(role = node.role) ? " #{role}" : ''}"#{title_attr} epub:type="#{epub_type}">
#{title_el}<div class="content">
#{output_content node}
</div>