Sha256: 5a19f60da3291cb838c46e14de18cc54745cd3639927fe6256a29df0e6877ea0
Contents?: true
Size: 579 Bytes
Versions: 8
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' describe ReverseMarkdown::Converters::Blockquote do let(:converter) { ReverseMarkdown::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 "> - foo" 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 "> Some text.\n> \n> Some more text." end end
Version data entries
8 entries across 8 versions & 1 rubygems