
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
marked-tex-renderer
Advanced tools
A plug-in style renderer to produce TeX output for marked.
var marked = require('marked');
var TexRenderer = require('marked-tex-renderer');
marked.setOptions({
renderer: new TexRenderer()
});
console.log(marked('I am using __markdown__.'));
marked-tex-renderer tries to be agnostic to LaTeX packages. As a result, in cannot convert some Markdown features to TeX in a straightforward manner (simply because you need packages to implement them). Therefore, marked-tex-renderer relies on external functions for rendering these features:
~~Deleted text~~Click [here](https://github.com)You can supply rendering functions for these feature in following manner:
marked.setOptions({
renderer: new TexRenderer(),
gfm: true,
failOnUnsupported: false,
delRenderer: function (text) {
// return TeX source to render deleted text
},
linkRenderer: function (href, title, text) {
// return TeX source to render hyperlinks
},
imageRenderer: function (href, title, text) {
// return TeX source to render images
}
});
However, marked-tex-renderer provide some useful functions. You can use them, but you will have to include some \usepackage commands in your tex files manually:
marked.setOptions({
renderer: new TexRenderer(),
gfm: true,
failOnUnsupported: false,
// requires \usepackage{ulem}
delRenderer: TexRenderer.delImpl,
// requires \usepackage{hyperref}
linkRenderer: TexRenderer.linkImpl,
// requires \usepackage{graphicx}
imageRenderer: TexRenderer.imageImpl
});
Options for marked-tex-renderer is passed alongside with options to marked:
marked.setOptions(options);
Following are the options for marked-tex-renderer:
failOnUnsupported: If set to true, an error is thrown when plain-TeX-unsupported features are used. Possible values are true, false. Default is true.delRenderer: Renderer function for deleted text. Should have the signature function (text), and should return TeX source for deleted text.linkRenderer: Renderer function for hyperlinks. Should have the signature function (href, title, text), and should return TeX source for hyperlink.imageRenderer: Renderer function for images. Should have the signature function (href, title, text), and should return TeX source for image.FAQs
A plug-in style renderer to produce TeX output for marked
We found that marked-tex-renderer demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.