aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph.go
diff options
context:
space:
mode:
Diffstat (limited to 'mardown/ast_paragraph.go')
-rw-r--r--mardown/ast_paragraph.go2
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) {