From ca75fe0ce3208a26f87329793d6c4935ba498e26 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 1 Mar 2024 14:21:36 -0700 Subject: [PATCH] Accept lowercase inline HTML declarations --- lib/common.js | 2 +- test/regression.txt | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/common.js b/lib/common.js index 9d9cfe65..2db7dc81 100644 --- a/lib/common.js +++ b/lib/common.js @@ -26,7 +26,7 @@ var OPENTAG = "<" + TAGNAME + ATTRIBUTE + "*" + "\\s*/?>"; var CLOSETAG = "]"; var HTMLCOMMENT = "||" var PROCESSINGINSTRUCTION = "[<][?][\\s\\S]*?[?][>]"; -var DECLARATION = "]*>"; +var DECLARATION = "]*>"; var CDATA = ""; var HTMLTAG = "(?:" + diff --git a/test/regression.txt b/test/regression.txt index aea81378..bf34ab6c 100644 --- a/test/regression.txt +++ b/test/regression.txt @@ -491,4 +491,14 @@ x <- 1 ""third [test] .

""third test

-```````````````````````````````` \ No newline at end of file +```````````````````````````````` + +#283 +```````````````````````````````` example +x + +x +. +

x

+

x<!>

+````````````````````````````````