
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
markdown-it-replace-link
Advanced tools
markdown-it plugin for replacing links (image & text) in the markdown document.
markdown-it plugin for replacing links (image & text) in the markdown document.
var md = require('markdown-it')({
replaceLink: function (link, env) {
return link + "?c=" + Date.now();
}
}).use(require('markdown-it-replace-link')); // <-- this use(package_name) is required
[Hello](test)
and use this
var md = require('markdown-it')({
replaceLink: function (link, env) {
return "http://me.com/" + link;
}
}).use(require('markdown-it-replace-link'));
This will result in the link prefixed with the http://me.com/
like:
<p><a href="http://me.com/test">Hello</a></p>
Both images and html links will be processed.
If using this in a browser, the script will create a variable
window.markdownitReplaceLink
that can be passed to .use()
.
To run the tests use:
npm run test
FAQs
markdown-it plugin for replacing links (image & text) in the markdown document.
The npm package markdown-it-replace-link receives a total of 4,983 weekly downloads. As such, markdown-it-replace-link popularity was classified as popular.
We found that markdown-it-replace-link demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.