Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@olets/markdown-it-wrapperless-fence-rule
Advanced tools
markdown-it plugin for a fence rule with no wrapper
markdown-it
plugin for a fence rule with no wrapper.
By default, markdown-it
will always wrap rendered fenced code in <pre><code>
. That's a good default: it turns
```js
…
```
into
<pre>
<code>
…
</code>
</pre>
But that's not the behavior you want if you're using a fenced code processor which adds the <pre><code>
wrappers for you, or if you don't want <pre><code>
wrappers at all.
<package manager> add [-D] @olets/markdown-it-wrapperless-fence-rule
import markdownItWrapperlessFenceRule from '@olets/markdown-it-wrapperless-fence-rule';
import MarkdownIt from 'markdown-it';
const md = MarkdownIt();
md.renderer.rules.fence = markdownItWrapperlessFenceRule;
md.use(/* … */);
Thanks for your interest. Contributions are welcome!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Check the Issues to see if your topic has been discussed before or if it is being worked on.
Please read CONTRIBUTING.md before opening a pull request.
See LICENSE.
FAQs
markdown-it plugin for a fence rule with no wrapper
We found that @olets/markdown-it-wrapperless-fence-rule demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.