![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
remark-lint-list-item-indent
Advanced tools
Readme
Warn when the spacing between a list item’s bullet and its content violates a given style.
Options: 'tab-size'
, 'mixed'
, or 'space'
, default: 'tab-size'
.
remark-stringify
uses 'tab-size'
(named 'tab'
there) by default to ensure markdown is
seen the same way across vendors. This can be configured with the
listItemIndent
option. This rule’s 'space'
option is named '1'
there.
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 | 'mixed' |
remark-preset-lint-recommended | 'tab-size' |
valid.md
Note: ·
represents a space.
*···List
····item.
Paragraph.
11.·List
····item.
Paragraph.
*···List
····item.
*···List
····item.
No messages.
valid.md
When configured with 'mixed'
.
Note: ·
represents a space.
*·List item.
Paragraph.
11.·List item
Paragraph.
*···List
····item.
*···List
····item.
No messages.
invalid.md
When configured with 'mixed'
.
Note: ·
represents a space.
*···List item.
1:5: Incorrect list-item indent: remove 2 spaces
valid.md
When configured with 'space'
.
Note: ·
represents a space.
*·List item.
Paragraph.
11.·List item
Paragraph.
*·List
··item.
*·List
··item.
No messages.
invalid.md
When configured with 'space'
.
Note: ·
represents a space.
*···List
····item.
1:5: Incorrect list-item indent: remove 2 spaces
invalid.md
When configured with 'tab-size'
.
Note: ·
represents a space.
*·List
··item.
1:3: Incorrect list-item indent: add 2 spaces
invalid.md
When configured with 'invalid'
.
1:1: Invalid list-item indent style `invalid`: use either `'tab-size'`, `'space'`, or `'mixed'`
npm install remark-lint-list-item-indent
You probably want to use it on the CLI through a config file:
...
"remarkConfig": {
"plugins": [
...
"lint",
+ "lint-list-item-indent",
...
]
}
...
Or use it on the CLI directly
remark -u lint -u lint-list-item-indent 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-list-item-indent'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});
FAQs
remark-lint rule to warn when the spacing between a list item’s bullet and its content violates a given style
The npm package remark-lint-list-item-indent receives a total of 109,170 weekly downloads. As such, remark-lint-list-item-indent popularity was classified as popular.
We found that remark-lint-list-item-indent 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.