From 02f1e42a7f83f041627eace65675c1d6cea7e8cc Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 09:55:15 +0200 Subject: feat(markdown): trim space in top level --- mardown/ast_paragraph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mardown/ast_paragraph.go') diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go index 5961370..1a78ced 100644 --- a/mardown/ast_paragraph.go +++ b/mardown/ast_paragraph.go @@ -27,7 +27,7 @@ func (a *astParagraph) Eval() (template.HTML, error) { if a.oneLine { return content, nil } - return template.HTML(fmt.Sprintf("

%s

", content)), nil + return template.HTML(fmt.Sprintf("

%s

", trimSpace(content))), nil } func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { -- cgit v1.2.3