aboutsummaryrefslogtreecommitdiff
path: root/mardown
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:29:16 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:29:16 +0200
commitb07dd267fc10812f7e94bf6d9be08667537dd331 (patch)
tree6be669cc7bcb07a582b6dbb19c60dc67e6ede45a /mardown
parent914dc68dfbef59908246b8bfff6d1e7ca705249d (diff)
fix(markdown): modifier and paragraph does not handle !
Diffstat (limited to 'mardown')
-rw-r--r--mardown/ast_modifier.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/mardown/ast_modifier.go b/mardown/ast_modifier.go
index 2d1cd4f..46d5874 100644
--- a/mardown/ast_modifier.go
+++ b/mardown/ast_modifier.go
@@ -75,7 +75,12 @@ func modifier(lxs *lexers) (*astModifier, error) {
case lexerBreak:
lxs.current-- // because we did not use it
return mod, nil
+ case lexerExternal:
+ if lxs.Current().Value == "!" {
+ s += lxs.Current().Value
+ }
default:
+ println(lxs.Current().Type, lxs.Current().Value)
return nil, ErrInvalidTypeInModifier
}
}