require 'test_helper'
class HTML5Test < Redcarpet::TestCase
def test_that_html5_works
section = <<-HTML.chomp.strip_heredoc
The quick brown fox jumps over the lazy dog. Hello world! The quick brown fox jumps over the lazy dog.
<section>
<p>The quick brown fox jumps over the lazy dog.</p>
</section>
HTML
header = <<-HTML
<header>
<hgroup>
<h1>Section heading</h1>
<h2>Subhead</h2>
</hgroup>
</header>
HTML
assert_renders section_expected, section
assert_renders header_expected, header
end
def test_script_tag_recognition
html = <<-HTML.chomp.strip_heredoc
HTML
assert_renders html, html
end
def test_new_html5_tags_not_escaped
details = <<-HTML.chomp.strip_heredoc