remark-parse
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -18,2 +18,3 @@ 'use strict' | ||
var size | ||
var lastIndent = 0 | ||
@@ -29,3 +30,6 @@ while (character === tab || character === space) { | ||
stops[indent] = index | ||
while (lastIndent < indent) { | ||
stops[++lastIndent] = index | ||
} | ||
character = value.charAt(++index) | ||
@@ -32,0 +36,0 @@ } |
@@ -9,3 +9,2 @@ 'use strict' | ||
var tab = '\t' | ||
var lineFeed = '\n' | ||
@@ -25,3 +24,2 @@ var space = ' ' | ||
var stops | ||
var padding | ||
@@ -61,14 +59,3 @@ values.unshift(repeat(space, maximum) + exclamationMark) | ||
if ( | ||
trim(values[position]).length !== 0 && | ||
minIndent && | ||
index !== minIndent | ||
) { | ||
padding = tab | ||
} else { | ||
padding = '' | ||
} | ||
values[position] = | ||
padding + values[position].slice(index in stops ? stops[index] + 1 : 0) | ||
values[position] = values[position].slice(stops[index] + 1) | ||
} | ||
@@ -75,0 +62,0 @@ } |
{ | ||
"name": "remark-parse", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "remark plugin to parse Markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
115014
53
3835