diff --git a/block_test.go b/block_test.go index 86089e7..a78a7d5 100644 --- a/block_test.go +++ b/block_test.go @@ -1408,8 +1408,10 @@ func TestBlockComments(t *testing.T) { var tests = []string{ "Some text\n\n\n", "

Some text

\n\n\n", + "Some text\n\n\n", "

Some text

\n\n\n", + "Some text\n\n\n", "

Some text

\n\n\n", } diff --git a/inline_test.go b/inline_test.go index 72fbf8d..ff0e489 100644 --- a/inline_test.go +++ b/inline_test.go @@ -977,18 +977,25 @@ func TestInlineComments(t *testing.T) { var tests = []string{ "Hello \n", "

Hello

\n", + "Hello ", "

Hello

\n", + "Hello \n", "

Hello

\n", + "Hello \na", "

Hello \na

\n", + "* list \n", "\n", + " comment\n", "

comment

\n", + "blahblah\n\nrhubarb\n", "

blahblah\n\nrhubarb

\n", }