From 2df33d533d6d5fced28a7a70b44637e59a8cd56c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 28 Jan 2024 18:28:10 -0800 Subject: [PATCH] Remove source, add search to list of recognized block tags. A spec 0.31 change we forgot in last release. --- lib/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocks.js b/lib/blocks.js index 0f0f844c..aba1eacf 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -20,7 +20,7 @@ var reHtmlBlockOpen = [ /^<[?]/, /^]|$)/i, + /^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|search|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i, new RegExp("^(?:" + OPENTAG + "|" + CLOSETAG + ")\\s*$", "i") ];