summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-10-18 20:21:25 +0300
committerMarat Radchenko <marat@slonopotamus.org>2020-10-18 20:21:25 +0300
commitf68307e31ef1f65ca62c4d3b2d7151908fa28cd3 (patch)
tree85486bb1732cb7d2d1cdcf14a895d7e4c95ff760 /spec
parentf9b7b402020ef5f37e2cd64b888f533a3e6bc10c (diff)
resolves #375 fix crash when inline pass macro `m` contains an icon
Diffstat (limited to 'spec')
-rw-r--r--spec/converter_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb
index b6bb326..05bb0f1 100644
--- a/spec/converter_spec.rb
+++ b/spec/converter_spec.rb
@@ -270,6 +270,16 @@ toc::[]
EOS
end
+ it 'does not crash when sees inline pass macro `m` with an icon' do
+ to_epub <<~EOS
+= Test
+:icons: font
+:call-to-action: pass:m,q[icon:hand-o-right[] *Call to Action*]
+
+{call-to-action}
+ EOS
+ end
+
it 'supports video' do
book, = to_epub fixture_file('video/book.adoc')
chapter = book.item_by_href '_chapter.xhtml'