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-emphasis-marker
Advanced tools
remark-lint rule to warn when emphasis markers violate the given style
Warn for violating emphasis markers.
Options: 'consistent'
, '*'
, or '_'
, default: 'consistent'
.
'consistent'
detects the first used emphasis style and warns when
subsequent emphasis use different styles.
remark-stringify
formats emphasis using _
(underscore) by default.
Pass
emphasis: '*'
to use *
(asterisk) instead.
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 | '*' |
ok.md
When configured with '*'
.
*foo*
No messages.
not-ok.md
When configured with '*'
.
_foo_
1:1-1:6: Emphasis should use `*` as a marker
ok.md
When configured with '_'
.
_foo_
No messages.
not-ok.md
When configured with '_'
.
*foo*
1:1-1:6: Emphasis should use `_` as a marker
not-ok.md
*foo*
_bar_
2:1-2:6: Emphasis should use `*` as a marker
not-ok.md
When configured with '💩'
.
1:1: Incorrect emphasis marker `💩`: use either `'consistent'`, `'*'`, or `'_'`
npm:
npm install remark-lint-emphasis-marker
You probably want to use it on the CLI through a config file:
…
"remarkConfig": {
"plugins": [
…
"lint",
+ "lint-emphasis-marker",
…
]
}
…
Or use it on the CLI directly
remark -u lint -u lint-emphasis-marker 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-emphasis-marker'))
.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 emphasis markers violate the given style
The npm package remark-lint-emphasis-marker receives a total of 44,107 weekly downloads. As such, remark-lint-emphasis-marker popularity was classified as popular.
We found that remark-lint-emphasis-marker 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.