aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_quote.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:43:06 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:43:06 +0200
commitc49daa8fe6fdcf1c7fab08ee32f1ff994979c401 (patch)
tree6ac743ddd35563893f92f2fcba73907657d36191 /mardown/ast_quote.go
parentb07dd267fc10812f7e94bf6d9be08667537dd331 (diff)
fix(markdown): paragraph parse always skip one char
Diffstat (limited to 'mardown/ast_quote.go')
-rw-r--r--mardown/ast_quote.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/mardown/ast_quote.go b/mardown/ast_quote.go
index 9647500..11c7c13 100644
--- a/mardown/ast_quote.go
+++ b/mardown/ast_quote.go
@@ -48,7 +48,7 @@ func quote(lxs *lexers) (*astQuote, error) {
n = 0
if source {
// because the code did not use it
- lxs.current--
+ lxs.Before()
return tree, nil
}
quoteContinue = true
@@ -58,7 +58,6 @@ func quote(lxs *lexers) (*astQuote, error) {
source = true
}
p, err := paragraph(lxs, true)
- lxs.current-- // because we call the next twice here
if err != nil {
return nil, err
}
@@ -72,7 +71,7 @@ func quote(lxs *lexers) (*astQuote, error) {
quoteContinue = false
default:
// because the code did not use it
- lxs.current--
+ lxs.Before()
return tree, nil
}
}