markdown-it
Advanced tools
Comparing version 12.3.1 to 12.3.2
@@ -9,3 +9,3 @@ // Proceess '\n' | ||
module.exports = function newline(state, silent) { | ||
var pmax, max, pos = state.pos; | ||
var pmax, max, ws, pos = state.pos; | ||
@@ -24,3 +24,7 @@ if (state.src.charCodeAt(pos) !== 0x0A/* \n */) { return false; } | ||
if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 0x20) { | ||
state.pending = state.pending.replace(/ +$/, ''); | ||
// Find whitespaces tail of pending chars. | ||
ws = pmax - 1; | ||
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 0x20) ws--; | ||
state.pending = state.pending.slice(0, ws); | ||
state.push('hardbreak', 'br', 0); | ||
@@ -27,0 +31,0 @@ } else { |
{ | ||
"name": "markdown-it", | ||
"version": "12.3.1", | ||
"version": "12.3.2", | ||
"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
553421
13738