diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-13 18:09:40 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-13 18:09:48 +0100 |
| commit | aea07c141b3a2448ea367ad80ad5e12d04a78df7 (patch) | |
| tree | 67031a6cfe4c5b42f9527410045f4d3793f32946 /markdown/ast_paragraph_test.go | |
| parent | d695b39edf898e056a8de3724a020f15754fcea9 (diff) | |
refactor(markdown): use new dom package to create html
Diffstat (limited to 'markdown/ast_paragraph_test.go')
| -rw-r--r-- | markdown/ast_paragraph_test.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/markdown/ast_paragraph_test.go b/markdown/ast_paragraph_test.go index 9155a9b..46dd714 100644 --- a/markdown/ast_paragraph_test.go +++ b/markdown/ast_paragraph_test.go @@ -3,18 +3,11 @@ package markdown import "testing" func TestParagraph(t *testing.T) { - content := "bonsoir" - lxs := lex(content) - tree, err := ast(lxs) - if err != nil { - t.Fatal(err) - } - c, err := tree.Eval(nil) + c, err := Parse("bonsoir", nil) if err != nil { t.Fatal(err) } if c != "<p>bonsoir</p>" { t.Errorf("failed, got %s", c) - t.Logf("lxs: %s\ntree: %s", lxs, tree) } } |
