From 7b2b9d312791fcf6f49a350f6887a2019d2730f7 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 22:35:31 +0200 Subject: feat(markdown): quote --- mardown/ast_test.go | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'mardown/ast_test.go') diff --git a/mardown/ast_test.go b/mardown/ast_test.go index b270b18..d9033c2 100644 --- a/mardown/ast_test.go +++ b/mardown/ast_test.go @@ -17,7 +17,9 @@ func TestAst(t *testing.T) { t.Errorf("failed, got %s", c) t.Logf("lxs: %s\ntree: %s", lxs, tree) } - content = "***bon*soir**" + content = ` +***bon*soir** +` lxs = lex(content) tree, err = ast(lxs) if err != nil { @@ -45,4 +47,21 @@ func TestAst(t *testing.T) { t.Errorf("failed, got %s", c) t.Logf("lxs: %s\ntree: %s", lxs, tree) } + content = ` +> Bonsoir, je suis un **code** +avec une source +` + lxs = lex(content) + tree, err = ast(lxs) + if err != nil { + t.Fatal(err) + } + c, err = tree.Eval() + if err != nil { + t.Fatal(err) + } + if c != `
Bonsoir, je suis un code

avec une source

` { + t.Errorf("failed, got %s", c) + t.Logf("lxs: %s\ntree: %s", lxs, tree) + } } -- cgit v1.2.3