diff --git a/lib/common.js b/lib/common.js index 5b8912f8..4139e80b 100644 --- a/lib/common.js +++ b/lib/common.js @@ -26,7 +26,7 @@ var OPENTAG = "<" + TAGNAME + ATTRIBUTE + "*" + "\\s*/?>"; var CLOSETAG = "" + TAGNAME + "\\s*[>]"; 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 adbcf05f..91513f04 100644 --- a/test/regression.txt +++ b/test/regression.txt @@ -245,3 +245,11 @@ abc . ```````````````````````````````` + +Declarations don't need spaces, according to the spec (cmark#456) +```````````````````````````````` example +x +. +
x
+```````````````````````````````` +