require 'test_helper' class TestLinebreaks < Minitest::Test def test_hardbreak_no_spaces doc = CommonMarker.render_doc("foo\nbaz") assert_equal "
foo\nbaz
\n", doc.to_html doc = CommonMarker.render_doc("foo\nbaz", :hardbreaks) assert_equal "foo
\nbaz
foo
\nbaz
foo
\nbaz