diff --git a/html.go b/html.go index d3233ee..c787e9b 100644 --- a/html.go +++ b/html.go @@ -530,8 +530,7 @@ func (options *Html) DocumentHeader(out *bytes.Buffer) { out.WriteString("\n") ending = " /" } else { - out.WriteString("\n") + out.WriteString("\n") out.WriteString("\n") } out.WriteString("\n") @@ -543,7 +542,7 @@ func (options *Html) DocumentHeader(out *bytes.Buffer) { out.WriteString("\"") out.WriteString(ending) out.WriteString(">\n") - out.WriteString(" \n") if options.css != "" { @@ -579,7 +578,9 @@ func (options *Html) DocumentFooter(out *bytes.Buffer) { } // insert the table of contents + out.WriteString("\n") // corner case spacing issue if options.flags&HTML_COMPLETE_PAGE == 0 && options.flags&HTML_OMIT_CONTENTS == 0 { diff --git a/markdown.go b/markdown.go index 7d42a52..bb2232f 100644 --- a/markdown.go +++ b/markdown.go @@ -98,6 +98,20 @@ var blockTags = map[string]bool{ "fieldset": true, "noscript": true, "blockquote": true, + + // HTML5 + "video": true, + "aside": true, + "canvas": true, + "figure": true, + "footer": true, + "header": true, + "hgroup": true, + "output": true, + "article": true, + "section": true, + "progress": true, + "figcaption": true, } // Renderer is the rendering interface.