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_paragraph.go | |
| parent | 11e4c0d5e62f5a7f3840a83081567eff33f16fd3 (diff) | |
feat(markdown): trim space in top level
Diffstat (limited to 'mardown/ast_paragraph.go')
| -rw-r--r-- | mardown/ast_paragraph.go | 2 |
1 files changed, 1 insertions, 1 deletions
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("<p>%s</p>", content)), nil + return template.HTML(fmt.Sprintf("<p>%s</p>", trimSpace(content))), nil } func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { |
