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

remark-parse

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-parse - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

6

lib/util/get-indentation.js

@@ -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 @@ }

15

lib/util/remove-indentation.js

@@ -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",

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