diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-03-12 13:54:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-12 23:54:42 +0300 |
| commit | a0395218863f9907b99eae6879bcf014014880e5 (patch) | |
| tree | 4c732b61dd682d866ba5b1e5d5cc7dbe09b849d1 /spec | |
| parent | cc61dd5f6906a9622f1da02d9452d5b7dffdb107 (diff) | |
resolves #165 add support for `[horizontal]` definition list (#170)
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/converter_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb index 4cacebf..e3b1252 100644 --- a/spec/converter_spec.rb +++ b/spec/converter_spec.rb @@ -233,5 +233,31 @@ describe Asciidoctor::Epub3::Converter do expect(audio).not_to be_nil expect(audio.media_type).to eq('audio/mpeg') end + + it 'supports horizontal dlist' do + book = to_epub <<~EOS += Article + +[horizontal] +CPU:: The brain of the computer. +Hard drive:: Permanent storage for operating system and/or user files. +RAM:: Temporarily stores information the CPU uses during operation. + EOS + + chapter = book.item_by_href '_article.xhtml' + expect(chapter).not_to be_nil + expect(chapter.content).to include <<~EOS +<tr> +<td class="hdlist1"> +<p> +CPU +</p> +</td> +<td class="hdlist2"> +<p>The brain of the computer.</p> +</td> +</tr> + EOS + end end end |
