Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
Gathering detailed insights and metrics for markdown-it-toc-and-anchor-fork
npm install markdown-it-toc-and-anchor-fork
Typescript
Module System
Node Version
NPM Version
71
Supply Chain
98.4
Quality
77.3
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
2,775
Last Day
2
Last Week
8
Last Month
19
Last Year
133
19 Commits
1 Watching
1 Branches
1 Contributors
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%
2
Compared to previous day
Last week
166.7%
8
Compared to previous week
Last month
375%
19
Compared to previous month
Last year
27.9%
133
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/19 approved changesets -- 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-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