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.
@centerforopenscience/markdown-it-toc
Advanced tools
Adds syntax for an automatically generated table of contents to markdown-it markdown parser.
markdown-it plugin for adding a table of contents to markdown documents
var md = require('markdown-it')({
html: true,
linkify: true,
typography: true
}).use(require('markdown-it-toc')); // <-- this use(package_name) is required
@[toc](Title)
Adding this tag with add anchors to each <h[n]>
tag on your document, and will add a <ul>
of hyperlinks pointing to these places on the page.
The end results looks like:
<p>
<h3>Title</h3>
<ul>
<li><a href="...">Heading 1</a></li>
...
...
</ul>
</p>
...
...
<h1><a href="..."></a>Heading 1</h1>
To run the tests use:
npm test
FAQs
Adds syntax for an automatically generated table of contents to markdown-it markdown parser.
The npm package @centerforopenscience/markdown-it-toc receives a total of 95 weekly downloads. As such, @centerforopenscience/markdown-it-toc popularity was classified as not popular.
We found that @centerforopenscience/markdown-it-toc 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
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.