commonmark
Advanced tools
Comparing version 0.31.0 to 0.31.1
@@ -23,3 +23,3 @@ "use strict"; | ||
/^<!\[CDATA\[/, | ||
/^<[/]?(?: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|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/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") | ||
@@ -26,0 +26,0 @@ ]; |
@@ -27,5 +27,5 @@ "use strict"; | ||
var CLOSETAG = "</" + TAGNAME + "\\s*[>]"; | ||
var HTMLCOMMENT = "<!-->|<!--->|<!--(?:[^-]|-[^-]|--[^>])*-->" | ||
var HTMLCOMMENT = "<!-->|<!--->|<!--[\\s\\S]*?-->" | ||
var PROCESSINGINSTRUCTION = "[<][?][\\s\\S]*?[?][>]"; | ||
var DECLARATION = "<![A-Z]+" + "[^>]*>"; | ||
var DECLARATION = "<![A-Za-z]+" + "[^>]*>"; | ||
var CDATA = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"; | ||
@@ -32,0 +32,0 @@ var HTMLTAG = |
@@ -7,3 +7,2 @@ "use strict"; | ||
import { decodeHTMLStrict } from "entities"; | ||
import "string.prototype.repeat"; // Polyfill for String.prototype.repeat | ||
@@ -889,3 +888,2 @@ var normalizeURI = common.normalizeURI; | ||
if (title === null) { | ||
title = ""; | ||
// rewind before spaces | ||
@@ -898,3 +896,3 @@ this.pos = beforetitle; | ||
if (this.match(reSpaceAtEndOfLine) === null) { | ||
if (title === "") { | ||
if (title === null) { | ||
atLineEnd = false; | ||
@@ -905,3 +903,3 @@ } else { | ||
// discard the title | ||
title = ""; | ||
title = null; | ||
// rewind before spaces | ||
@@ -927,3 +925,3 @@ this.pos = beforetitle; | ||
if (!refmap[normlabel]) { | ||
refmap[normlabel] = { destination: dest, title: title }; | ||
refmap[normlabel] = { destination: dest, title: title === null ? "" : title }; | ||
} | ||
@@ -930,0 +928,0 @@ return this.pos - startpos; |
{ | ||
"name": "commonmark", | ||
"description": "a strongly specified, highly compatible variant of Markdown", | ||
"version": "0.31.0", | ||
"version": "0.31.1", | ||
"homepage": "https://commonmark.org", | ||
@@ -40,4 +40,3 @@ "keywords": [ | ||
"mdurl": "~1.0.1", | ||
"minimist": "~1.2.5", | ||
"string.prototype.repeat": "^1.0.0" | ||
"minimist": "~1.2.5" | ||
}, | ||
@@ -44,0 +43,0 @@ "directories": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
673094
13699
- Removedstring.prototype.repeat@^1.0.0
- Removedarray-buffer-byte-length@1.0.1(transitive)
- Removedarraybuffer.prototype.slice@1.0.3(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddata-view-buffer@1.0.1(transitive)
- Removeddata-view-byte-length@1.0.1(transitive)
- Removeddata-view-byte-offset@1.0.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-abstract@1.23.5(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedes-set-tostringtag@2.0.3(transitive)
- Removedes-to-primitive@1.2.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunction.prototype.name@1.1.6(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedget-symbol-description@1.0.2(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-bigints@1.0.2(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinternal-slot@1.0.7(transitive)
- Removedis-array-buffer@3.0.4(transitive)
- Removedis-async-function@2.0.0(transitive)
- Removedis-bigint@1.0.4(transitive)
- Removedis-boolean-object@1.1.2(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-data-view@1.0.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-finalizationregistry@1.0.2(transitive)
- Removedis-generator-function@1.0.10(transitive)
- Removedis-map@2.0.3(transitive)
- Removedis-negative-zero@2.0.3(transitive)
- Removedis-number-object@1.0.7(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-set@2.0.3(transitive)
- Removedis-shared-array-buffer@1.0.3(transitive)
- Removedis-string@1.0.7(transitive)
- Removedis-symbol@1.0.4(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedis-weakmap@2.0.2(transitive)
- Removedis-weakref@1.0.2(transitive)
- Removedis-weakset@2.0.3(transitive)
- Removedisarray@2.0.5(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedreflect.getprototypeof@1.0.6(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedsafe-array-concat@1.1.2(transitive)
- Removedsafe-regex-test@1.0.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstring.prototype.repeat@1.0.0(transitive)
- Removedstring.prototype.trim@1.2.9(transitive)
- Removedstring.prototype.trimend@1.0.8(transitive)
- Removedstring.prototype.trimstart@1.0.8(transitive)
- Removedtyped-array-buffer@1.0.2(transitive)
- Removedtyped-array-byte-length@1.0.1(transitive)
- Removedtyped-array-byte-offset@1.0.3(transitive)
- Removedtyped-array-length@1.0.7(transitive)
- Removedunbox-primitive@1.0.2(transitive)
- Removedwhich-boxed-primitive@1.0.2(transitive)
- Removedwhich-builtin-type@1.1.4(transitive)
- Removedwhich-collection@1.0.2(transitive)
- Removedwhich-typed-array@1.1.15(transitive)