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/lexer.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mardown/lexer.go') diff --git a/mardown/lexer.go b/mardown/lexer.go index 4eaaf16..f87e61c 100644 --- a/mardown/lexer.go +++ b/mardown/lexer.go @@ -45,6 +45,11 @@ func (l *lexers) Finished() bool { return l.current >= len(l.lexers) } +func (l *lexers) Before() bool { + l.current-- + return l.current >= 0 && !l.Finished() +} + func (l *lexers) String() string { s := "Lexers[" for _, l := range l.lexers { -- cgit v1.2.3