aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 21:40:34 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 21:40:34 +0200
commit96f395276f524105ff281c40413c883b55d3e9da (patch)
tree379808fc0dd5c6eff41a6864383cbf0a830a502b /mardown/ast_test.go
parentc4ba44b1c3e066f98ccc406c15a8c1de170e4709 (diff)
fix(markdown): invalid modifier organization
Diffstat (limited to 'mardown/ast_test.go')
-rw-r--r--mardown/ast_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/mardown/ast_test.go b/mardown/ast_test.go
index 11a9639..6712497 100644
--- a/mardown/ast_test.go
+++ b/mardown/ast_test.go
@@ -17,4 +17,18 @@ func TestAst(t *testing.T) {
t.Errorf("failed, got %s", c)
t.Logf("lxs: %s\ntree: %s", lxs, tree)
}
+ content = "***bon*soir**"
+ 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 != "<p><b><em>bon</em>soir</b></p>" {
+ t.Errorf("failed, got %s", c)
+ t.Logf("lxs: %s\ntree: %s", lxs, tree)
+ }
}