Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
remark-lint-heading-style
Advanced tools
remark-lint rule to warn when heading style violates the given style
Warn when a heading does not conform to a given style.
Options: 'consistent'
, 'atx'
, 'atx-closed'
, or 'setext'
,
default: 'consistent'
.
'consistent'
detects the first used heading style and warns when
subsequent headings use different styles.
remark-stringify
formats headings as ATX by default.
This can be configured with the
setext
and
closeAtx
options.
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-consistent | 'consistent' |
remark-preset-lint-markdown-style-guide | 'atx' |
ok.md
When configured with 'atx'
.
# Alpha
## Bravo
### Charlie
No messages.
ok.md
When configured with 'atx-closed'
.
# Delta ##
## Echo ##
### Foxtrot ###
No messages.
ok.md
When configured with 'setext'
.
Golf
====
Hotel
-----
### India
No messages.
not-ok.md
Juliett
=======
## Kilo
### Lima ###
4:1-4:8: Headings should use setext
6:1-6:13: Headings should use setext
npm:
npm install remark-lint-heading-style
You probably want to use it on the CLI through a config file:
…
"remarkConfig": {
"plugins": [
…
"lint",
+ "lint-heading-style",
…
]
}
…
Or use it on the CLI directly
remark -u lint -u lint-heading-style 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-heading-style'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || 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 when heading style violates the given style
The npm package remark-lint-heading-style receives a total of 46,457 weekly downloads. As such, remark-lint-heading-style popularity was classified as popular.
We found that remark-lint-heading-style 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.