Gathering detailed insights and metrics for remark-lint-list-item-spacing
Gathering detailed insights and metrics for remark-lint-list-item-spacing
Gathering detailed insights and metrics for remark-lint-list-item-spacing
Gathering detailed insights and metrics for remark-lint-list-item-spacing
plugins to check (lint) markdown code style
npm install remark-lint-list-item-spacing
Typescript
Module System
Node Version
NPM Version
remark-lint-no-unused-definitions@4.0.2
Updated on Apr 10, 2025
remark-lint-fenced-code-flag@4.2.0
Updated on Apr 09, 2025
remark-lint-no-undefined-references@5.0.2
Updated on Apr 09, 2025
10.0.1
Updated on Jan 27, 2025
remark-lint-table-cell-padding@5.1.0
Updated on Jan 27, 2025
remark-lint-table-pipe-alignment@4.1.0
Updated on Jan 27, 2025
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
987 Stars
629 Commits
135 Forks
19 Watchers
1 Branches
55 Contributors
Updated on Jul 13, 2025
Latest Version
5.0.1
Package Id
remark-lint-list-item-spacing@5.0.1
Unpacked Size
17.57 kB
Size
4.87 kB
File Count
5
NPM Version
11.0.0
Node Version
23.1.0
Published on
Jan 27, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
remark-lint
rule to warn when lists violate a given style.
This package checks blank lines between list items.
You can use this package to check the style of lists.
This plugin is included in the following presets:
Preset | Options |
---|---|
remark-preset-lint-markdown-style-guide |
This package is ESM only. In Node.js (version 16+), install with npm:
1npm install remark-lint-list-item-spacing
In Deno with esm.sh
:
1import remarkLintListItemSpacing from 'https://esm.sh/remark-lint-list-item-spacing@5'
In browsers with esm.sh
:
1<script type="module"> 2 import remarkLintListItemSpacing from 'https://esm.sh/remark-lint-list-item-spacing@5?bundle' 3</script>
On the API:
1import remarkLint from 'remark-lint' 2import remarkLintListItemSpacing from 'remark-lint-list-item-spacing' 3import remarkParse from 'remark-parse' 4import remarkStringify from 'remark-stringify' 5import {read} from 'to-vfile' 6import {unified} from 'unified' 7import {reporter} from 'vfile-reporter' 8 9const file = await read('example.md') 10 11await unified() 12 .use(remarkParse) 13 .use(remarkLint) 14 .use(remarkLintListItemSpacing) 15 .use(remarkStringify) 16 .process(file) 17 18console.error(reporter(file))
On the CLI:
1remark --frail --use remark-lint --use remark-lint-list-item-spacing .
On the CLI in a config file (here a package.json
):
1 … 2 "remarkConfig": { 3 "plugins": [ 4 … 5 "remark-lint", 6+ "remark-lint-list-item-spacing", 7 … 8 ] 9 } 10 …
This package exports no identifiers.
It exports the TypeScript type
Options
.
The default export is
remarkLintListItemSpacing
.
unified().use(remarkLintListItemSpacing[, options])
Warn when lists violate a given style.
options
(Options
, optional)
— configurationTransform (Transformer
from unified
).
Options
Configuration (TypeScript type).
checkBlanks
(boolean
, default: false
)
— expect blank lines between items based on whether an item has blank
lines in them;
the default is to expect blank lines based on whether items span multiple
linesFirst some background.
Regardless of ordered and unordered,
there are two kinds of lists in markdown,
tight and loose.
Lists are tight by default but if there is a blank line between two list
items or between two blocks inside an item,
that turns the whole list into a loose list.
When turning markdown into HTML,
paragraphs in tight lists are not wrapped in <p>
tags.
This rule defaults to the markdown-style-guide
preference for which lists should be loose or not:
loose when at least one item spans more than one line and tight otherwise.
With {checkBlanks: true}
,
this rule follows whether a list is loose or not according to Commonmark,
and when one item is loose,
all items must be loose.
ok.md
1* Mercury.
2* Venus.
3
4+ Mercury and
5 Venus.
6
7+ Earth.
No messages.
ok-check-blanks.md
When configured with { checkBlanks: true }
.
1* Mercury.
2* Venus.
3
4+ Mercury
5
6 Mercury is the first planet from the Sun and the smallest in the Solar
7 System.
8
9+ Earth.
No messages.
not-ok.md
1* Mercury.
2
3* Venus.
4
5+ Mercury and
6 Venus.
7+ Earth.
8
9* Mercury.
10
11 Mercury is the first planet from the Sun and the smallest in the Solar
12 System.
13* Earth.
11:11-3:1: Unexpected `1` blank line between list items, expected `0` blank lines, remove `1` blank line 26:11-7:1: Unexpected `0` blank lines between list items, expected `1` blank line, add `1` blank line 312:12-13:1: Unexpected `0` blank lines between list items, expected `1` blank line, add `1` blank line
not-ok-blank.md
When configured with { checkBlanks: true }
.
1* Mercury.
2
3* Venus.
4
5+ Mercury and
6 Venus.
7
8+ Earth.
9
10* Mercury.
11
12 Mercury is the first planet from the Sun and the smallest in the Solar
13 System.
14* Earth.
11:11-3:1: Unexpected `1` blank line between list items, expected `0` blank lines, remove `1` blank line 26:11-8:1: Unexpected `1` blank line between list items, expected `0` blank lines, remove `1` blank line 313:12-14:1: Unexpected `0` blank lines between list items, expected `1` blank line, add `1` blank line
Projects maintained by the unified collective are compatible with maintained versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
remark-lint-list-item-spacing@5
,
compatible with Node.js 16.
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.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More