aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 22:32:41 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 22:32:48 +0200
commitce480a18b865acc21eb6c36dea8fc27b08061603 (patch)
treef17625ac33ebde39f7c3188798b6a8fa9c9311eb /mardown/ast_paragraph.go
parent1ce93d83321c751265e4207ebf6dc73a280482c6 (diff)
feat(markdown): support list
Diffstat (limited to 'mardown/ast_paragraph.go')
-rw-r--r--mardown/ast_paragraph.go4
1 files changed, 2 insertions, 2 deletions
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))