Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commonmark

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonmark - npm Package Compare versions

Comparing version 0.31.0 to 0.31.1

2

lib/blocks.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc