all repos — grayfriday @ f1ce82cb01f4e31e5c840eb8ef3cf2c0e7ab978f

blackfriday fork with a few changes

Sort block tag list alphabetically
Vytautas Ĺ altenis vytas@rtfb.lt
Sun, 08 Nov 2015 21:33:20 +0200
commit

f1ce82cb01f4e31e5c840eb8ef3cf2c0e7ab978f

parent

510be64de022c25096c6f476b7b7c240a8eca1a5

1 files changed, 16 insertions(+), 16 deletions(-)

jump to
M markdown.gomarkdown.go

@@ -105,43 +105,43 @@

// These are the tags that are recognized as HTML block tags. // Any of these can be included in markdown text without special escaping. var blockTags = map[string]bool{ - "p": true, + "blockquote": true, + "del": true, + "div": true, "dl": true, + "fieldset": true, + "form": true, "h1": true, "h2": true, "h3": true, "h4": true, "h5": true, "h6": true, - "ol": true, - "ul": true, - "del": true, - "div": true, + "iframe": true, "ins": true, - "pre": true, - "form": true, "math": true, - "table": true, - "iframe": true, + "noscript": true, + "ol": true, + "pre": true, + "p": true, "script": true, "style": true, - "fieldset": true, - "noscript": true, - "blockquote": true, + "table": true, + "ul": true, // HTML5 - "video": true, + "article": true, "aside": true, "canvas": true, + "figcaption": true, "figure": true, "footer": true, "header": true, "hgroup": true, "output": true, - "article": true, - "section": true, "progress": true, - "figcaption": true, + "section": true, + "video": true, } // Renderer is the rendering interface.