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

remark-lint

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

6

history.md

@@ -5,2 +5,8 @@ <!--remark setext-->

3.2.1 / 2016-04-26
==================
* Fix incorrect error in `no-heading-content-indent` ([`1f2e9a8`](https://github.com/wooorm/remark-lint/commit/1f2e9a8))
* Fix CRLF line-endings in `hard-break-spaces` ([`31f5069`](https://github.com/wooorm/remark-lint/commit/31f5069))
3.2.0 / 2016-04-04

@@ -7,0 +13,0 @@ ==================

2

lib/rules/hard-break-spaces.js

@@ -52,3 +52,3 @@ /**

value = contents.slice(start, end).split('\n', 1)[0];
value = contents.slice(start, end).split('\n', 1)[0].replace(/\r$/, '');

@@ -55,0 +55,0 @@ if (value.length > 2) {

@@ -62,2 +62,3 @@ /**

var type = style(node, 'atx');
var head;
var initial;

@@ -82,4 +83,14 @@ var final;

index = depth + (index - initial.offset);
diff = start(children[0]).column - initial.column - 1 - index;
head = start(children[0]).column;
/*
* Ignore empty headings.
*/
if (!head) {
return;
}
diff = head - initial.column - 1 - index;
if (diff) {

@@ -86,0 +97,0 @@ word = diff > 0 ? 'Remove' : 'Add';

{
"name": "remark-lint",
"version": "3.2.0",
"version": "3.2.1",
"description": "Lint markdown with remark",

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