From c49daa8fe6fdcf1c7fab08ee32f1ff994979c401 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 09:43:06 +0200 Subject: fix(markdown): paragraph parse always skip one char --- mardown/ast_quote.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mardown/ast_quote.go') 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 } } -- cgit v1.2.3