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_header.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mardown/ast_header.go') diff --git a/mardown/ast_header.go b/mardown/ast_header.go index 64e47ad..5b13411 100644 --- a/mardown/ast_header.go +++ b/mardown/ast_header.go @@ -22,7 +22,7 @@ func (a *astHeader) Eval() (template.HTML, error) { if err != nil { return "", err } - return template.HTML(fmt.Sprintf("%s", a.level, content, a.level)), nil + return template.HTML(fmt.Sprintf("%s", a.level, trimSpace(content), a.level)), nil } func header(lxs *lexers) (*astHeader, error) { -- cgit v1.2.3