diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2024-01-31 11:04:54 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2024-01-31 11:04:54 +0300 |
| commit | bd4775fa56bece0915be808732e2cfd3049d1036 (patch) | |
| tree | 4573c6eea1d47848751acdd5b1fa6502abaf0363 /spec | |
| parent | 96724940c7e0f1142f2b090e0887861f531c154a (diff) | |
resolves #463 add support for blocks in callouts
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/converter_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb index 454f6f1..a400384 100644 --- a/spec/converter_spec.rb +++ b/spec/converter_spec.rb @@ -327,6 +327,21 @@ describe Asciidoctor::Epub3::Converter do expect(audio.media_type).to eq('audio/mpeg') end + it 'supports blocks in colist' do + book, = to_epub <<~EOS + = Article + + ---- + Callout target <.> + ---- + <.> Callout with list + * List Item 1 + EOS + article = book.item_by_href '_article.xhtml' + expect(article).not_to be_nil + expect(article.content).to include 'List Item 1' + end + it 'supports horizontal dlist' do book = to_epub <<~EOS = Article |
