From ce480a18b865acc21eb6c36dea8fc27b08061603 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 22:32:41 +0200 Subject: feat(markdown): support list --- mardown/ast_paragraph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mardown/ast_paragraph.go') diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go index 3e8d027..2e8895d 100644 --- a/mardown/ast_paragraph.go +++ b/mardown/ast_paragraph.go @@ -43,9 +43,9 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { switch lxs.Current().Type { case lexerBreak: n = len(lxs.Current().Value) - case lexerQuote: + case lexerQuote, lexerList: if n > 0 { - lxs.Before() + lxs.Before() // because we did not use it return tree, nil } tree.content = append(tree.content, astLiteral(lxs.Current().Value)) -- cgit v1.2.3