From 72eed1cfa1f5067a7ca581c53bb40e9e0fb047cc Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 2 Oct 2025 13:21:37 +0200 Subject: fix(markdown): bad list parsing --- mardown/ast_external_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mardown/ast_external_test.go') diff --git a/mardown/ast_external_test.go b/mardown/ast_external_test.go index fc0597d..afae085 100644 --- a/mardown/ast_external_test.go +++ b/mardown/ast_external_test.go @@ -28,4 +28,22 @@ func TestExternal(t *testing.T) { if string(got) != `
image alt
` { t.Errorf("invalid value, got %s", got) } + + lxs = lex(` +![image alt](image src) +source 1 +source 2 +`) + tree, err = ast(lxs) + if err != nil { + t.Fatal(err) + } + got, err = tree.Eval() + if err != nil { + t.Fatal(err) + } + if string(got) != `
image alt
source 1 source 2
` { + t.Errorf("invalid value, got %s", got) + } + } -- cgit v1.2.3