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

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 8.4.0 to 8.4.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

8.4.1 / 2018-02-15
------------------
- Fix smartquotes around softbreaks, #430.
8.4.0 / 2017-08-24

@@ -2,0 +8,0 @@ ------------------

2

lib/renderer.js

@@ -148,3 +148,3 @@ /**

*
* Each rule is called as independed static function with fixed signature:
* Each rule is called as independent static function with fixed signature:
*

@@ -151,0 +151,0 @@ * ```javascript

@@ -62,3 +62,4 @@ // Convert straight quotation marks to typographic ones

for (j = i - 1; j >= 0; j--) {
if (tokens[j].type !== 'text') { continue; }
if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20
if (tokens[j].type !== 'text') continue;

@@ -79,3 +80,4 @@ lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);

for (j = i + 1; j < tokens.length; j++) {
if (tokens[j].type !== 'text') { continue; }
if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20
if (tokens[j].type !== 'text') continue;

@@ -82,0 +84,0 @@ nextChar = tokens[j].content.charCodeAt(0);

{
"name": "markdown-it",
"version": "8.4.0",
"version": "8.4.1",
"description": "Markdown-it - modern pluggable markdown parser.",

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

"mdurl": "^1.0.1",
"uc.micro": "^1.0.3"
"uc.micro": "^1.0.5"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -121,3 +121,3 @@ # markdown-it

// Highlighter function. Should return escaped HTML,
// or '' if the source string is not changed and should be escaped externaly.
// or '' if the source string is not changed and should be escaped externally.
// If result starts with <pre... internal wrapper is skipped.

@@ -124,0 +124,0 @@ highlight: function (/*str, lang*/) { return ''; }

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