templates/inline_kbd.html.slim in asciidoctor-revealjs-4.0.1 vs templates/inline_kbd.html.slim in asciidoctor-revealjs-4.1.0.rc2
- old
+ new
@@ -1,8 +1,9 @@
- if (keys = attr 'keys').size == 1
- kbd=keys.first
+ = html_tag('kbd', data_attrs(@attributes))
+ = keys.first
- else
- span.keyseq
+ = html_tag('span', { :class => ['keyseq'] }.merge(data_attrs(@attributes)))
- keys.each_with_index do |key, idx|
- unless idx.zero?
|+
kbd=key