aboutsummaryrefslogtreecommitdiff
path: root/mardown/lexer.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 10:58:28 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 10:58:28 +0200
commit597e15a5cde4127105ce7a6109d52491d6976be7 (patch)
treeba10438a8604ba4ed8a0c59a32844fbebee0c96c /mardown/lexer.go
parentf0899429d56849f8cdf58f53a8232e4433f6725e (diff)
fix(markdown): not supporting triple same modifier in a row
Diffstat (limited to 'mardown/lexer.go')
-rw-r--r--mardown/lexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mardown/lexer.go b/mardown/lexer.go
index 64fa78b..52e5788 100644
--- a/mardown/lexer.go
+++ b/mardown/lexer.go
@@ -88,7 +88,7 @@ func lex(s string) *lexers {
case '*', '_':
if (currentType != lexerModifier && len(previous) > 0) ||
(len(previous) > 0 && []rune(previous)[0] != c) ||
- len(previous) > 2 {
+ len(previous) >= 3 {
lexs = append(lexs, lexer{Type: currentType, Value: previous})
previous = ""
}