aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_modifier.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:26:10 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:26:10 +0200
commit914dc68dfbef59908246b8bfff6d1e7ca705249d (patch)
tree0651c3bea86ac0e6bb5a2e54138ee140b1128692 /mardown/ast_modifier.go
parentce5cf951ac6228f96f6f51e3c9e4d8af24702b55 (diff)
test(markdown): general file
Diffstat (limited to 'mardown/ast_modifier.go')
-rw-r--r--mardown/ast_modifier.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mardown/ast_modifier.go b/mardown/ast_modifier.go
index 570fbd2..2d1cd4f 100644
--- a/mardown/ast_modifier.go
+++ b/mardown/ast_modifier.go
@@ -57,7 +57,7 @@ func modifier(lxs *lexers) (*astModifier, error) {
}
}
var s string
- for lxs.Next() {
+ for modInside != nil && lxs.Next() {
switch lxs.Current().Type {
case lexerLiteral:
s += lxs.Current().Value