aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_modifier_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 15:04:54 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 15:04:54 +0200
commit511ad88f6bf7b0ec971df407469c494d9dcb139e (patch)
treea654ebad83f1123c0ea23fe52f3f9d809bcbe56c /mardown/ast_modifier_test.go
parent02f1e42a7f83f041627eace65675c1d6cea7e8cc (diff)
feat(markdown): rewrite modifier parser to construct a better tree
Diffstat (limited to 'mardown/ast_modifier_test.go')
-rw-r--r--mardown/ast_modifier_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mardown/ast_modifier_test.go b/mardown/ast_modifier_test.go
index d805f22..1539aa4 100644
--- a/mardown/ast_modifier_test.go
+++ b/mardown/ast_modifier_test.go
@@ -4,7 +4,7 @@ import "testing"
func TestModifier(t *testing.T) {
content := `
-***bon*soir**
+**bo*n*soir**
`
lxs := lex(content)
tree, err := ast(lxs)
@@ -15,7 +15,7 @@ func TestModifier(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if c != "<p><b><em>bon</em>soir</b></p>" {
+ if c != "<p><b>bo<em>n</em>soir</b></p>" {
t.Errorf("failed, got %s", c)
t.Logf("lxs: %s\ntree: %s", lxs, tree)
}