From c49daa8fe6fdcf1c7fab08ee32f1ff994979c401 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 09:43:06 +0200 Subject: fix(markdown): paragraph parse always skip one char --- mardown/ast_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mardown/ast_test.go') diff --git a/mardown/ast_test.go b/mardown/ast_test.go index 6215ced..030656b 100644 --- a/mardown/ast_test.go +++ b/mardown/ast_test.go @@ -35,7 +35,9 @@ func TestAst(t *testing.T) { if err != nil { t.Fatal(err) } - if string(res) != strings.ReplaceAll(parsed, "\n", "") { + wanted := strings.ReplaceAll(parsed, "\n", "") + if string(res) != wanted { t.Errorf("invalid string, got %s", res) + t.Logf("wanted %s", wanted) } } -- cgit v1.2.3