Sha256: 7639b48661e6643498ad32227e26f42beb9a9bff9389cb1acbf1be28a7025ff9
Contents?: true
Size: 374 Bytes
Versions: 16
Compression:
Stored size: 374 Bytes
Contents
require 'test_helper' class TestLinebreaks < Minitest::Test def test_hardbreak_no_spaces doc = CommonMarker.render_doc("foo\nbaz") assert_equal "<p>foo<br />\nbaz</p>\n", doc.to_html(:hardbreaks) end def test_hardbreak_with_spaces doc = CommonMarker.render_doc("foo \nbaz") assert_equal "<p>foo<br />\nbaz</p>\n", doc.to_html(:hardbreaks) end end
Version data entries
16 entries across 16 versions & 1 rubygems