1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 07:21:12 +00:00

Enable lax_spacing for markdown formatting (#28119).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17198 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-02-16 05:01:14 +00:00
parent 1518bbb38b
commit 241e4cbb68
2 changed files with 11 additions and 1 deletions

View File

@ -142,7 +142,8 @@ module Redmine
:strikethrough => true, :strikethrough => true,
:superscript => true, :superscript => true,
:no_intra_emphasis => true, :no_intra_emphasis => true,
:footnotes => true :footnotes => true,
:lax_spacing => true
) )
end end
end end

View File

@ -89,5 +89,14 @@ STR
assert_equal '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip assert_equal '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip
end 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
end end