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 11.0.0 to 11.0.1

7

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## [11.0.1] - 2020-09-14
### Fixed
- Fix blockquote lazy newlines, #696.
- Fix missed mappings for table rows, #705.
## [11.0.0] - 2020-05-20

@@ -504,2 +510,3 @@ ### Changed

[11.0.1]: https://github.com/markdown-it/markdown-it/compare/11.0.0...11.0.1
[11.0.0]: https://github.com/markdown-it/markdown-it/compare/10.0.0...11.0.0

@@ -506,0 +513,0 @@ [10.0.0]: https://github.com/markdown-it/markdown-it/compare/9.1.0...10.0.0

15

lib/rules_block/blockquote.js

@@ -28,3 +28,3 @@ // Block quotes

token,
wasOutdented,
isOutdented,
oldLineMax = state.lineMax,

@@ -44,4 +44,4 @@ pos = state.bMarks[startLine] + state.tShift[startLine],

// skip spaces after ">" and re-calculate offset
initial = offset = state.sCount[startLine] + pos - (state.bMarks[startLine] + state.tShift[startLine]);
// set offset past spaces and ">"
initial = offset = state.sCount[startLine] + 1;

@@ -111,3 +111,2 @@ // skip one optional space after '>'

state.parentType = 'blockquote';
wasOutdented = false;

@@ -141,3 +140,3 @@ // Search the end of the block

// ```
if (state.sCount[nextLine] < state.blkIndent) wasOutdented = true;
isOutdented = state.sCount[nextLine] < state.blkIndent;

@@ -152,7 +151,7 @@ pos = state.bMarks[nextLine] + state.tShift[nextLine];

if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !wasOutdented) {
if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !isOutdented) {
// This line is inside the blockquote.
// skip spaces after ">" and re-calculate offset
initial = offset = state.sCount[nextLine] + pos - (state.bMarks[nextLine] + state.tShift[nextLine]);
// set offset past spaces and ">"
initial = offset = state.sCount[nextLine] + 1;

@@ -159,0 +158,0 @@ // skip one optional space after '>'

@@ -178,2 +178,3 @@ // GFM table, non-standard

token = state.push('td_open', 'td', 1);
token.map = [ nextLine, nextLine + 1 ];
if (aligns[i]) {

@@ -184,2 +185,3 @@ token.attrs = [ [ 'style', 'text-align:' + aligns[i] ] ];

token = state.push('inline', '', 0);
token.map = [ nextLine, nextLine + 1 ];
token.content = columns[i] ? columns[i].trim() : '';

@@ -186,0 +188,0 @@ token.children = [];

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

if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20
if (tokens[j].type !== 'text') continue;
if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'

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

if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20
if (tokens[j].type !== 'text') continue;
if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'

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

@@ -41,5 +41,3 @@ // For each opening emphasis-like marker find a matching closing one

if (opener.open &&
opener.end < 0 &&
opener.level === closer.level) {
if (opener.open && opener.end < 0) {

@@ -46,0 +44,0 @@ isOddMatch = false;

{
"name": "markdown-it",
"version": "11.0.0",
"version": "11.0.1",
"description": "Markdown-it - modern pluggable markdown parser.",

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

"ansi": "^0.3.0",
"autoprefixer-stylus": "^0.14.0",
"autoprefixer-stylus": "^1.0.0",
"benchmark": "~2.1.0",

@@ -52,6 +52,6 @@ "browserify": "^16.3.0",

"express": "^4.14.0",
"gh-pages": "^2.2.0",
"gh-pages": "^3.1.0",
"highlight.js": "^10.0.3",
"markdown-it-abbr": "^1.0.4",
"markdown-it-container": "^2.0.0",
"markdown-it-container": "^3.0.0",
"markdown-it-deflist": "^2.0.0",

@@ -66,3 +66,3 @@ "markdown-it-emoji": "^1.1.1",

"markdown-it-testgen": "^0.1.3",
"mocha": "^7.1.2",
"mocha": "^8.0.1",
"ndoc": "^5.0.0",

@@ -69,0 +69,0 @@ "nyc": "^15.0.1",

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