Gathering detailed insights and metrics for markdown-it-github-toc
Gathering detailed insights and metrics for markdown-it-github-toc
npm install markdown-it-github-toc
Typescript
Module System
Node Version
NPM Version
77.7
Supply Chain
99.5
Quality
75.1
Maintenance
100
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
365,112
Last Day
222
Last Week
1,414
Last Month
5,778
Last Year
70,504
7 Stars
37 Commits
3 Forks
3 Watching
1 Branches
Minified
Minified + Gzipped
Latest Version
3.2.4
Package Id
markdown-it-github-toc@3.2.4
Size
45.43 kB
NPM Version
4.1.2
Node Version
7.6.0
Cumulative downloads
Total Downloads
Last day
-14.6%
222
Compared to previous day
Last week
-22.8%
1,414
Compared to previous week
Last month
-4.8%
5,778
Compared to previous month
Last year
2.4%
70,504
Compared to previous year
markdown-it plugin to add toc and GitHub style heading anchors
1$ npm install markdown-it-github-toc
1import markdownIt from "markdown-it" 2import markdownItGithubToc from "markdown-it-github-toc" 3 4markdownIt({ 5 html: true, 6 linkify: true, 7 typography: true, 8 }) 9 .use(markdownItGithubToc, { 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.
tocLastLevel
(default: 6
)
Allow you to skip some heading level. Example: use 5 if you want to skip <h6>
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
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
78 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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