Fix #2598 for old parser

This commit is contained in:
Type-kun
2016-09-06 01:06:29 +05:00
parent 3152daa47a
commit 8c04a9d390
2 changed files with 15 additions and 2 deletions

View File

@@ -75,6 +75,10 @@ class DTextTest < ActiveSupport::TestCase
def test_headers
assert_equal("<h1>header</h1>", p("h1. header"))
end
def test_headers_with_ids
assert_equal("<h1 id=\"header-id\">header</h1>", p("h1#header-id. header"))
end
def test_quote_blocks
assert_equal('<blockquote><p>test</p></blockquote>', p("[quote]\ntest\n[/quote]"))