Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@altano/remark-mdx-toc-with-slugs
Advanced tools
A remark plugin to generate a table of contents (including slugs) and convert it into MDX export
This is a remark plugin that exports a table of contents. It is similar to the remark-mdx-toc plugin but has an additional slug
property.
Given this mdx:
## Resource Acquisition Is Initialization (RAII)
### Is There a Problem?
### C++ Classes
### The Solution
remark-mdx-toc-with-slugs
exports this object on the toc
field:
export const toc = [
{
depth: 2,
value: "Resource Acquisition Is Initialization (RAII)",
slug: "resource-acquisition-is-initialization-raii",
attributes: {},
children: [
{
depth: 3,
value: "Is There a Problem?",
attributes: {},
children: [],
slug: "is-there-a-problem",
},
{
depth: 3,
value: "C++ Classes",
attributes: {},
children: [],
slug: "c-classes",
},
{
depth: 3,
value: "The Solution",
attributes: {},
children: [],
slug: "the-solution",
},
],
},
];
name
: The exported variable name of the table of contents. By default, it's toc
.github-slugger
and should therefore match the rehype-slug
packageFAQs
A remark plugin to generate a table of contents (including slugs) and convert it into MDX export
The npm package @altano/remark-mdx-toc-with-slugs receives a total of 0 weekly downloads. As such, @altano/remark-mdx-toc-with-slugs popularity was classified as not popular.
We found that @altano/remark-mdx-toc-with-slugs 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.