diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:55:15 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:55:15 +0200 |
| commit | 02f1e42a7f83f041627eace65675c1d6cea7e8cc (patch) | |
| tree | 34b01105e6ffa49916d9c6882411fb1590630cc2 /mardown/ast_quote.go | |
| parent | 11e4c0d5e62f5a7f3840a83081567eff33f16fd3 (diff) | |
feat(markdown): trim space in top level
Diffstat (limited to 'mardown/ast_quote.go')
| -rw-r--r-- | mardown/ast_quote.go | 3 |
1 files changed, 1 insertions, 2 deletions
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("<blockquote>%s</blockquote>", quote)) + quote = template.HTML(fmt.Sprintf("<blockquote>%s</blockquote>", trimSpace(quote))) var source template.HTML for _, c := range a.source { ct, err := c.Eval() |
