Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
remark-lint-no-consecutive-blank-lines
Advanced tools
remark-lint rule to warn for too many consecutive blank lines
Warn for too many consecutive blank lines. Knows about the extra line needed between a list and indented code, and two lists.
remark-stringify
always uses one blank line between blocks if possible, or two lines when
needed.
See Using remark to fix your markdown on how to automatically fix warnings for this rule.
This rule is included in the following presets:
Preset | Setting |
---|---|
remark-preset-lint-markdown-style-guide |
valid.md
Note: ␊
represents a line feed.
Foo...
␊
...Bar.
No messages.
valid-for-code.md
Note: ␊
represents a line feed.
Paragraph.
* List
␊
␊
bravo();
No messages.
empty-document.md
No messages.
invalid.md
Note: ␊
represents a line feed.
Foo...
␊
␊
...Bar
␊
␊
4:1: Remove 1 line before node
4:7: Remove 2 lines after node
npm install remark-lint-no-consecutive-blank-lines
You probably want to use it on the CLI through a config file:
...
"remarkConfig": {
"plugins": [
...
"lint",
+ "lint-no-consecutive-blank-lines",
...
]
}
...
Or use it on the CLI directly
remark -u lint -u lint-no-consecutive-blank-lines readme.md
Or use this on the API:
var remark = require('remark');
var report = require('vfile-reporter');
remark()
.use(require('remark-lint'))
+ .use(require('remark-lint-no-consecutive-blank-lines'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});
FAQs
remark-lint rule to warn for too many consecutive blank lines
The npm package remark-lint-no-consecutive-blank-lines receives a total of 77,449 weekly downloads. As such, remark-lint-no-consecutive-blank-lines popularity was classified as popular.
We found that remark-lint-no-consecutive-blank-lines demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.