summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-10-15 17:11:47 +0300
committerMarat Radchenko <marat@slonopotamus.org>2020-10-15 17:11:47 +0300
commit1ebb970a44eed38ef5b59db534790abc8bfc96bc (patch)
treee63d9212fbb2879b77de52b4a3804be54ad4259a /lib
parent222d923fdb248139ab38d6d54ed4f476940342cb (diff)
resolves #373 stop using deprecated `epub:type` for admonitions
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor-epub3/converter.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb
index 31359eb..52cf2d3 100644
--- a/lib/asciidoctor-epub3/converter.rb
+++ b/lib/asciidoctor-epub3/converter.rb
@@ -532,14 +532,12 @@ document.addEventListener('DOMContentLoaded', function(event, reader) {
type = node.attr 'name'
epub_type = case type
when 'tip'
- 'help'
- when 'note'
- 'note'
- when 'important', 'warning', 'caution'
- 'warning'
+ 'tip'
+ when 'important', 'warning', 'caution', 'note'
+ 'notice'
else
logger.warn %(unknown admonition type: #{type})
- 'note'
+ 'notice'
end
%(<aside#{id_attr} class="admonition #{type}"#{title_attr} epub:type="#{epub_type}">
#{title_el}<div class="content">