aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_paragraph.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-05 15:59:18 +0200
committerWilliam Hergès <william@herges.fr>2025-10-05 15:59:18 +0200
commitcceb40d0c021981e2aef0f11ab001c955d0dccc9 (patch)
tree9d770eeb1f5543579d8ec60c1ec2fb699f9843ce /markdown/ast_paragraph.go
parentbce210d75a4552c5b144a5760ace4950c198f046 (diff)
fix(markdown): missing space after linebreak and link
Diffstat (limited to 'markdown/ast_paragraph.go')
-rw-r--r--markdown/ast_paragraph.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/markdown/ast_paragraph.go b/markdown/ast_paragraph.go
index ae1f657..ca5541f 100644
--- a/markdown/ast_paragraph.go
+++ b/markdown/ast_paragraph.go
@@ -87,9 +87,7 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, *ParseError) {
tree.content = append(tree.content, b)
}
}
- if !lxs.Finished() {
- lxs.Before() // because we never handle the last item
- }
+ lxs.Before() // because we never handle the last item
return tree, nil
}