Patch #28119 » enable_lax_spacing_for_markdown.patch
| lib/redmine/wiki_formatting/markdown/formatter.rb | ||
|---|---|---|
|
:strikethrough => true,
|
||
|
:superscript => true,
|
||
|
:no_intra_emphasis => true,
|
||
|
:footnotes => true
|
||
|
:footnotes => true,
|
||
|
:lax_spacing => true
|
||
|
)
|
||
|
end
|
||
|
end
|
||
| test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb | ||
|---|---|---|
|
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
|
||
- « Previous
- 1
- …
- 5
- 6
- 7
- Next »