-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
393 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,10 @@ | |
"ignoreDeps": [], | ||
"dependencyDashboard": true | ||
}, | ||
"resolutions": {} | ||
"resolutions": {}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index dc4f8326387c2112da6460500a3bf87a855ac80d..a91209f427b4e34488b0684488e72d16ded66462 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -2177,7 +2177,7 @@ function TOC({ headings, filePath }) { | ||
const config = useConfig(); | ||
const tocRef = useRef7(null); | ||
const items = useMemo3( | ||
- () => headings.filter((heading) => heading.depth > 1), | ||
+ () => headings.filter((heading) => heading.depth == 2), | ||
[headings] | ||
); | ||
const hasHeadings = items.length > 0; |
Oops, something went wrong.