require 'spec_helper' def render(text) Slodown::Formatter.new(text).complete.to_s end describe 'basic formatting syntax' do it "converts a block-level image to a
structure" do expect(render %[check it out:\n\n![image](image.jpg "Cute Kitten!")]) .to eq %[

check it out:

\n\n
image
Cute Kitten!
\n] end it "doesn't affect OEmbed-enabled embeds" do expect(render %[check it out:\n\n![video](https://www.youtube.com/watch?v=KilehMXMxo0)]) .to eq %[

check it out:

\n\n
] end it "doesn't affect inline images" do expect(render %[here's an inline image: ![image](image.jpg)]) .to eq %[

here’s an inline image: image

\n] end end