Sha256: 3969eccbb7002cba18c555f200ba2ba872cb2c952012ade82b20df00bc18194d

Contents?: true

Size: 530 Bytes

Versions: 12

Compression:

Stored size: 530 Bytes

Contents

require 'spec_helper'

describe ReverseMarkdown do

  let(:input)    { File.read('spec/assets/from_the_wild.html') }
  let(:document) { Nokogiri::HTML(input) }
  subject { ReverseMarkdown.convert(input) }

  it "should make sense of strong-crazy markup (as seen in the wild)" do
    expect(subject).to include "**.  \n \\*\\*\\* intentcast** : logo design   \n **.**\n\n"
  end

  it "should not over escape * or _" do
    expect(subject).to include '[![](example.com/foo_bar.png) I\_AM\_HELPFUL](example.com/foo_bar)'
  end

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/reverse_markdown-2.1.1/spec/components/from_the_wild_spec.rb
reverse_markdown-2.1.1 spec/components/from_the_wild_spec.rb
reverse_markdown-2.0.0 spec/components/from_the_wild_spec.rb
reverse_markdown-1.4.0 spec/components/from_the_wild_spec.rb
reverse_markdown-1.3.0 spec/components/from_the_wild_spec.rb
reverse_markdown-1.2.0 spec/components/from_the_wild_spec.rb
reverse_markdown-1.1.0 spec/components/from_the_wild_spec.rb
reverse_markdown-1.0.5 spec/components/from_the_wild_spec.rb
reverse_markdown-1.0.4 spec/components/from_the_wild_spec.rb
reverse_markdown-1.0.3 spec/components/from_the_wild_spec.rb
reverse_markdown-1.0.2 spec/components/from_the_wild_spec.rb
reverse_markdown-1.0.1 spec/components/from_the_wild_spec.rb