Project

General

Profile

Patch #28119 » enable_lax_spacing_for_markdown.patch

Marius BĂLTEANU, 2018-02-01 10:18

View differences:

lib/redmine/wiki_formatting/markdown/formatter.rb
142 142
            :strikethrough => true,
143 143
            :superscript => true,
144 144
            :no_intra_emphasis => true,
145
            :footnotes => true
145
            :footnotes => true,
146
            :lax_spacing => true
146 147
          )
147 148
        end
148 149
      end
test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
89 89
    assert_equal '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip
90 90
  end
91 91

  
92
  def test_markdown_should_not_require_surrounded_empty_line
93
    text = <<-STR
94
This is a list:
95
* One
96
* Two
97
STR
98
    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
99
  end
100

  
92 101
  end
93 102
end
(7-7/7)