Sha256: f838d62ce288bfc797e29a7df4af6bd797756dc500cfc9b2a222dbb170b52149
Contents?: true
Size: 1.31 KB
Versions: 4
Compression:
Stored size: 1.31 KB
Contents
require 'spec_helper' describe ReverseMarkdown::Mapper do let(:input) { File.read('spec/assets/basic.html') } let(:document) { Nokogiri::HTML(input) } subject { ReverseMarkdown.parse_string(input) } it { should match /plain text ?\n/ } it { should match /# h1\n/ } it { should match /## h2\n/ } it { should match /### h3\n/ } it { should match /#### h4\n/ } it { should match /_em tag content_/ } it { should match /before and after empty em tags/ } it { should match /before and after em tags containing whitespace/ } it { should match /_double em tags_/ } it { should match /_double em tags in p tag_/ } it { should match /\*\*strong tag content\*\*/ } it { should match /before and after empty strong tags/ } it { should match /before and after strong tags containing whitespace/ } it { should match /\*\*double strong tags\*\*/ } it { should match /\*\*double strong tags in p tag\*\*/ } it { should match /before \*\* double strong tags containing whitespace \*\* after/ } it { should match /_i tag content_/ } it { should match /\*\*b tag content\*\*/ } it { should match /br tags become double space followed by newline \n/ } #it { should match /br tags XXX \n/ } it { should match /\nbefore hr ?\n\* \* \*\n ?after hr\n/ } it { should match /section 1\n ?\nsection 2/ } end
Version data entries
4 entries across 4 versions & 1 rubygems