From f1ce82cb01f4e31e5c840eb8ef3cf2c0e7ab978f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Sun, 8 Nov 2015 21:33:20 +0200 Subject: [PATCH] Sort block tag list alphabetically --- markdown.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/markdown.go b/markdown.go index ad36b53..6e76994 100644 --- a/markdown.go +++ b/markdown.go @@ -105,43 +105,43 @@ const ( // 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, - "ins": true, - "pre": true, - "form": true, - "math": true, - "table": true, "iframe": true, + "ins": true, + "math": 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.