require "./spec_helper" # Commonmark spec examples describe_spec("fixtures/spec.txt") # Smart punctuation examples describe_spec("fixtures/smart_punct.txt", smart: true) # Regression examples describe_spec("fixtures/regression.txt") describe Markd do # Thanks Ryan Westlund feedback via email. it "should escape unsafe html" do raw = %Q{```">\n```} html = %Q{
\n} Markd.to_html(raw).should eq(html) end end