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_quote.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mardown/ast_quote.go') diff --git a/mardown/ast_quote.go b/mardown/ast_quote.go index 101b854..5ed1208 100644 --- a/mardown/ast_quote.go +++ b/mardown/ast_quote.go @@ -20,8 +20,7 @@ func (a *astQuote) Eval() (template.HTML, error) { } quote += ct } - quote = template.HTML(strings.TrimSpace(string(quote))) - quote = template.HTML(fmt.Sprintf("
%s
", quote)) + quote = template.HTML(fmt.Sprintf("
%s
", trimSpace(quote))) var source template.HTML for _, c := range a.source { ct, err := c.Eval() -- cgit v1.2.3