markdown-it
Advanced tools
Comparing version 8.3.2 to 8.4.0
@@ -0,1 +1,7 @@ | ||
8.4.0 / 2017-08-24 | ||
------------------ | ||
- Updated CM spec compatibility to 0.28. | ||
8.3.2 / 2017-08-03 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -58,6 +58,4 @@ // List of valid html blocks names, accorting to commonmark spec | ||
'param', | ||
'pre', | ||
'section', | ||
'source', | ||
'title', | ||
'summary', | ||
@@ -64,0 +62,0 @@ 'table', |
@@ -62,8 +62,7 @@ // Parse link destination | ||
level++; | ||
if (level > 1) { break; } | ||
} | ||
if (code === 0x29 /* ) */) { | ||
if (level === 0) { break; } | ||
level--; | ||
if (level < 0) { break; } | ||
} | ||
@@ -75,2 +74,3 @@ | ||
if (start === pos) { return result; } | ||
if (level !== 0) { return result; } | ||
@@ -77,0 +77,0 @@ result.str = unescapeAll(str.slice(start, pos)); |
@@ -80,3 +80,3 @@ // Process *this* and _that_ | ||
for (i = 0; i < max; i++) { | ||
for (i = max - 1; i >= 0; i--) { | ||
startDelim = delimiters[i]; | ||
@@ -95,3 +95,3 @@ | ||
// If the next delimiter has the same marker and is adjacent to this one, | ||
// If the previous delimiter has the same marker and is adjacent to this one, | ||
// merge those into one strong delimiter. | ||
@@ -101,7 +101,7 @@ // | ||
// | ||
isStrong = i + 1 < max && | ||
delimiters[i + 1].end === startDelim.end - 1 && | ||
delimiters[i + 1].token === startDelim.token + 1 && | ||
delimiters[startDelim.end - 1].token === endDelim.token - 1 && | ||
delimiters[i + 1].marker === startDelim.marker; | ||
isStrong = i > 0 && | ||
delimiters[i - 1].end === startDelim.end + 1 && | ||
delimiters[i - 1].token === startDelim.token - 1 && | ||
delimiters[startDelim.end + 1].token === endDelim.token + 1 && | ||
delimiters[i - 1].marker === startDelim.marker; | ||
@@ -125,7 +125,7 @@ ch = String.fromCharCode(startDelim.marker); | ||
if (isStrong) { | ||
state.tokens[delimiters[i + 1].token].content = ''; | ||
state.tokens[delimiters[startDelim.end - 1].token].content = ''; | ||
i++; | ||
state.tokens[delimiters[i - 1].token].content = ''; | ||
state.tokens[delimiters[startDelim.end + 1].token].content = ''; | ||
i--; | ||
} | ||
} | ||
}; |
{ | ||
"name": "markdown-it", | ||
"version": "8.3.2", | ||
"version": "8.4.0", | ||
"description": "Markdown-it - modern pluggable markdown parser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
544972
11828