diff --git a/lib/blocks.js b/lib/blocks.js index a7f405f7..1a8419ab 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -16,16 +16,7 @@ var C_OPEN_BRACKET = 91; var InlineParser = require('./inlines'); -var reHtmlBlockOpen = [ - /./, // dummy for 0 - /^<(?:script|pre|style)(?:\s|>|$)/i, - /^|"; var PROCESSINGINSTRUCTION = "[<][?].*?[?][>]"; -var DECLARATION = "]*>"; +var DECLARATION = "]*>"; var CDATA = ""; var HTMLTAG = "(?:" + OPENTAG + "|" + CLOSETAG + "|" + HTMLCOMMENT + "|" + PROCESSINGINSTRUCTION + "|" + DECLARATION + "|" + CDATA + ")"; var reHtmlTag = new RegExp('^' + HTMLTAG, 'i'); +var reHtmlBlockOpen = [ + /./, // dummy for 0 + /^<(?:script|pre|style)(?:\s|>|$)/i, + /^