Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
remark-lint-no-shortcut-reference-image
Advanced tools
remark-lint rule to warn when shortcut reference images are used
Warn when shortcut reference images are used.
Shortcut references render as images when a definition is found, and as
plain text without definition. Sometimes, you don’t intend to create an
image from the reference, but this rule still warns anyway. In that case,
you can escape the reference like so: !\[foo]
.
This rule is included in the following presets:
Preset | Setting |
---|---|
remark-preset-lint-markdown-style-guide | |
remark-preset-lint-recommended |
valid.md
![foo][]
[foo]: http://foo.bar/baz.png
No messages.
invalid.md
![foo]
[foo]: http://foo.bar/baz.png
1:1-1:7: Use the trailing [] on reference images
npm install remark-lint-no-shortcut-reference-image
You probably want to use it on the CLI through a config file:
...
"remarkConfig": {
"plugins": [
...
"lint",
+ "lint-no-shortcut-reference-image",
...
]
}
...
Or use it on the CLI directly
remark -u lint -u lint-no-shortcut-reference-image 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-no-shortcut-reference-image'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});
FAQs
remark-lint rule to warn when shortcut reference images are used
The npm package remark-lint-no-shortcut-reference-image receives a total of 80,736 weekly downloads. As such, remark-lint-no-shortcut-reference-image popularity was classified as popular.
We found that remark-lint-no-shortcut-reference-image 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.