From 1940f6620ede2d0b5b52486dd10950e364c2873a Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Mon, 21 Aug 2023 16:46:40 +0200 Subject: [PATCH] Port cb612bd0 from prosemirror-markdown --- markdown/parse_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/parse_test.go b/markdown/parse_test.go index 7677d8b..311c3ab 100644 --- a/markdown/parse_test.go +++ b/markdown/parse_test.go @@ -218,7 +218,7 @@ func TestMarkdown(t *testing.T) { doc(p("1. foo"))) // doesn't fail with line break inside inline mark - same("**text1\ntext2**", doc(p(strong("text1\ntext2")))) + serialize(doc(p(strong("text1\ntext2"))), "**text1\ntext2**") // drops trailing hard breaks serialize(doc(p("a", br, br)), "a")