diff options
Diffstat (limited to 'mardown/ast_header.go')
| -rw-r--r-- | mardown/ast_header.go | 2 |
1 files changed, 1 insertions, 1 deletions
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("<h%d>%s</h%d>", a.level, content, a.level)), nil + return template.HTML(fmt.Sprintf("<h%d>%s</h%d>", a.level, trimSpace(content), a.level)), nil } func header(lxs *lexers) (*astHeader, error) { |
