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 |
ok.md
Note: ␊
represents a line feed.
Foo…
␊
…Bar.
No messages.
empty-document.md
No messages.
not-ok.md
Note: ␊
represents a line feed.
Foo…
␊
␊
…Bar
␊
␊
4:1: Remove 1 line before node
4:5: Remove 2 lines after node
This package is ESM only:
Node 12+ is needed to use it and it must be imported
ed instead of required
d.
npm:
npm install remark-lint-no-consecutive-blank-lines
This package exports no identifiers.
The default export is remarkLintNoConsecutiveBlankLines
.
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:
import {remark} from 'remark'
import {reporter} from 'vfile-reporter'
import remarkLint from 'remark-lint'
import remarkLintNoConsecutiveBlankLines from 'remark-lint-no-consecutive-blank-lines'
remark()
.use(remarkLint)
+ .use(remarkLintNoConsecutiveBlankLines)
.process('_Emphasis_ and **importance**')
.then((file) => {
console.error(reporter(file))
})
See contributing.md
in remarkjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
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.