Commit a021123b authored by maeda's avatar maeda
Browse files

Enable lax_spacing for markdown formatting (#28119).

Patch by Marius BALTEANU.


git-svn-id: https://svn.redmine.org/redmine/trunk@17198 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8c21e2d4
......@@ -142,7 +142,8 @@ module Redmine
:strikethrough => true,
:superscript => true,
:no_intra_emphasis => true,
:footnotes => true
:footnotes => true,
:lax_spacing => true
)
end
end
......
......@@ -89,5 +89,14 @@ STR
assert_equal '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip
end
def test_markdown_should_not_require_surrounded_empty_line
text = <<-STR
This is a list:
* One
* Two
STR
assert_equal "<p>This is a list:</p>\n\n<ul>\n<li>One</li>\n<li>Two</li>\n</ul>", @formatter.new(text).to_html.strip
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment