1.0.0 • Published 5 years ago
remark-lint-no-hr-after-heading v1.0.0
remark-lint-no-hr-after-heading
Warn when a when an horizontal rule appears after a heading. It's a thematic break, not a heading border.
Example
ok.md
In
# Hello worldOut
No messages.
not-ok.md
In
# Hello world
---Out
2:1-2:4 warning Don’t use a horizontal line after a heading no-hr-after-heading remark-lintInstall
npm:
npm install remark-lint-no-heading-indentUse
You probably want to use it on the CLI through a config file:
…
"remarkConfig": {
"plugins": [
…
"lint",
+ "lint-no-hr-after-indent",
…
]
}
…Or use it on the CLI directly
remark -u lint -u lint-no-hr-after-indent readme.mdOr use this on the API:
var remark = require('remark')
var report = require('vfile-reporter')
remark()
.use(require('remark-lint'))
+ .use(require('lint-no-hr-after-indent'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file))
})License
1.0.0
5 years ago