Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
markdown-it plugin to add a toc and anchor links in headings
npm install markdown-it-toc-and-anchor-fork
Typescript
Module System
Node Version
NPM Version
70.9
Supply Chain
98.4
Quality
77.3
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Total Downloads
2,824
Last Day
1
Last Week
2
Last Month
12
Last Year
164
MIT License
19 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jan 24, 2016
Minified
Minified + Gzipped
Latest Version
2.1.1
Package Id
markdown-it-toc-and-anchor-fork@2.1.1
Size
5.62 kB
NPM Version
3.3.12
Node Version
5.3.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-33.3%
2
Compared to previous week
Last Month
-20%
12
Compared to previous month
Last Year
80.2%
164
Compared to previous year
markdown-it plugin to add toc and anchor links in headings
1$ npm install markdown-it-toc-and-anchor
1import markdownIt from "markdown-it" 2import markdownItTocAndAnchor from "markdown-it-toc-and-anchor" 3 4markdownIt({ 5 html: true, 6 linkify: true, 7 typography: true, 8 }) 9 .use(markdownItTocAndAnchor, { 10 // ...options 11 }) 12 .render(md)
toc
(default: true
)
Allow you to enable/disable the toc transformation of @[toc]
tocClassName
(default: "markdownIt-TOC"
)
Option to customize html class of the <ul>
wrapping the toc
tocFirstLevel
(default: 1
)
Allow you to skip some heading level. Example: use 2 if you want to skip <h1>
from the TOC.
anchorLink
(default: true
)
Allow you to enable/disable the anchor link in the headings
anchorLinkSymbol
(default: "#"
)
Allow you to customize the anchor link symbol
anchorLinkSpace
(default: true
)
Allow you to enable/disable inserting a space between the anchor link and heading.
anchorLinkSymbolClassName
(default: null
)
Allow you to customize the anchor link symbol class name. If not null, symbol will be rendered as <span class="anchorLinkSymbolClassName">anchorLinkSymbol</span>
.
anchorLinkBefore
(default: true
)
Allow you to prepend/append the anchor link in the headings
anchorClassName
(default: "markdownIt-Anchor"
)
Allow you to customize the anchor link class
resetIds
(default: true
)
Allow you to reset (or not) ids incrementation. Use it if you will have multiple documents on the same page.
indentation
(default: " "
)
Allow you to customize indentation
$ npm test
).No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/19 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More