diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 13:21:37 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 13:21:37 +0200 |
| commit | 72eed1cfa1f5067a7ca581c53bb40e9e0fb047cc (patch) | |
| tree | 5a4e8b69c4e2705222baf1e1c8e0ffcfadfb3c98 /mardown/ast_external_test.go | |
| parent | cdb0a541554aa4a16fc71b6425225e8c603c83b8 (diff) | |
fix(markdown): bad list parsing
Diffstat (limited to 'mardown/ast_external_test.go')
| -rw-r--r-- | mardown/ast_external_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
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) != `<figure><img alt="image alt" src="image src"></figure>` { t.Errorf("invalid value, got %s", got) } + + lxs = lex(` + +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) != `<figure><img alt="image alt" src="image src"><figcaption>source 1 source 2</figcaption></figure>` { + t.Errorf("invalid value, got %s", got) + } + } |
