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

remark-lint-no-consecutive-blank-lines

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint-no-consecutive-blank-lines - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

19

index.js

@@ -26,11 +26,2 @@ /**

*
* @example {"name": "ok-for-code.md"}
*
* Paragraph.
*
* * List
* ␊
* ␊
* bravo();
*
* @example {"name": "empty-document.md"}

@@ -117,15 +108,7 @@ *

var previous = all[index - 1]
var max = 2
if (previous && !generated(previous) && !generated(child)) {
if (
(previous.type === 'list' && child.type === 'list') ||
(child.type === 'code' && previous.type === 'list' && !child.lang)
) {
max++
}
compare(position.end(previous), position.start(child), max)
compare(position.end(previous), position.start(child), 2)
}
}
}

2

package.json
{
"name": "remark-lint-no-consecutive-blank-lines",
"version": "2.0.1",
"version": "3.0.0",
"description": "remark-lint rule to warn for too many consecutive blank lines",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -52,21 +52,2 @@ <!--This file is generated-->

##### `ok-for-code.md`
###### In
Note: `␊` represents a line feed.
```markdown
Paragraph.
* List
bravo();
```
###### Out
No messages.
##### `empty-document.md`

@@ -181,5 +162,5 @@

[chat-badge]: https://img.shields.io/badge/chat-spectrum.svg
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
[chat]: https://spectrum.chat/unified/remark
[chat]: https://github.com/remarkjs/remark/discussions

@@ -186,0 +167,0 @@ [npm]: https://docs.npmjs.com/cli/install

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