Sha256: 75c9c7b2ec0b49c3c23a0cff1ea44bd5814617446ad2495e3d3d921eaaa48cf9
Contents?: true
Size: 916 Bytes
Versions: 9
Compression:
Stored size: 916 Bytes
Contents
require 'spec_helper' describe ReverseAdoc::Converters::Blockquote do let(:converter) { ReverseAdoc::Converters::Blockquote.new } it 'converts nested elements as well' do input = node_for("<blockquote><ul><li>foo</li></ul></blockquote>") result = converter.convert(input) expect(result).to eq "\n\n____\n* foo\n____\n\n" end it 'can deal with paragraphs inside' do input = node_for("<blockquote><p>Some text.</p><p>Some more text.</p></blockquote>") result = converter.convert(input) expect(result).to eq "\n\n____\nSome text.\n\nSome more text.\n____\n\n" end it 'can deal with cite attribute' do input = node_for("<blockquote cite='http://www.example.com'><p>Some text.</p><p>Some more text.</p></blockquote>") result = converter.convert(input) expect(result).to eq "\n\n[quote, http://www.example.com]\n____\nSome text.\n\nSome more text.\n____\n\n" end end
Version data entries
9 entries across 9 versions & 1 rubygems