Socket
Socket
Sign inDemoInstall

markdown-it

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

8

CHANGELOG.md

@@ -0,1 +1,9 @@

4.0.3 / 2015-03-25
------------------
- Updated linkifier.
- Smartquotes rule cleanup (#76).
- Fixed replacements rule bug in PhantomJS (#77).
4.0.2 / 2015-03-22

@@ -2,0 +10,0 @@ ------------------

6

lib/rules_core/replacements.js

@@ -22,2 +22,6 @@ // Simple typographyc replacements

// Workaround for phantomjs - need regex without /g flag,
// or root check will fail every second time
var SCOPED_ABBR_TEST_RE = /\((c|tm|r|p)\)/i;
var SCOPED_ABBR_RE = /\((c|tm|r|p)\)/ig;

@@ -79,3 +83,3 @@ var SCOPED_ABBR = {

if (SCOPED_ABBR_RE.test(state.tokens[blkIdx].content)) {
if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) {
replace_scoped(state.tokens[blkIdx].children);

@@ -82,0 +86,0 @@ }

4

lib/rules_core/smartquotes.js

@@ -29,4 +29,2 @@ // Convert straight quotation marks to typographic ones

if (token.type !== 'text' || QUOTE_TEST_RE.test(token.text)) { continue; }
thisLevel = tokens[i].level;

@@ -39,2 +37,4 @@

if (token.type !== 'text') { continue; }
text = token.content;

@@ -41,0 +41,0 @@ pos = 0;

{
"name": "markdown-it",
"version": "4.0.2",
"version": "4.0.3",
"description": "Markdown-it - modern pluggable markdown parser.",

@@ -23,3 +23,3 @@ "keywords": [

"entities": "~1.1.1",
"linkify-it": "~0.1.5",
"linkify-it": "~1.0.0",
"mdurl": "~1.0.0",

@@ -26,0 +26,0 @@ "uc.micro": "^1.0.0"

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