Socket
Socket
Sign inDemoInstall

marked

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

9

lib/marked.js

@@ -247,2 +247,3 @@ /**

type: 'html',
pre: cap[1] === 'pre',
text: cap[0]

@@ -301,3 +302,3 @@ });

strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
em: /^\b_([^\0]+?)_\b|^\*((?:\*\*|[^\0])+?)\*(?!\*)/,
em: /^\b_((?:__|[^\0])+?)_\b|^\*((?:\*\*|[^\0])+?)\*(?!\*)/,
code: /^(`+)([^\0]*?[^`])\1(?!`)/,

@@ -565,3 +566,5 @@ br: /^ {2,}\n(?!\s*$)/,

case 'html': {
return inline.lexer(token.text);
return !token.pre
? inline.lexer(token.text)
: token.text;
}

@@ -617,3 +620,3 @@ case 'paragraph': {

.replace(/"/g, '"')
.replace(/'/g, ''');
.replace(/'/g, ''');
};

@@ -620,0 +623,0 @@

@@ -5,3 +5,3 @@ {

"author": "Christopher Jeffrey",
"version": "0.1.9",
"version": "0.2.0",
"main": "./lib/marked.js",

@@ -13,5 +13,5 @@ "bin": "./bin/marked",

"homepage": "https://github.com/chjj/marked",
"bugs": "http://github.com/chjj/marked/issues",
"bugs": { "url": "http://github.com/chjj/marked/issues" },
"keywords": [ "markdown", "markup", "html" ],
"tags": [ "markdown", "markup", "html" ]
}
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