From 21190255137e37d1f023205b11489953b3b3257a Mon Sep 17 00:00:00 2001
From: Stephen Tse <Stephen-X@users.noreply.github.com>
Date: Mon, 31 Mar 2025 00:35:20 +0000
Subject: [PATCH] fix(toc): Fixed headers in second ToC element not highlight-able
---
quartz/plugins/transformers/toc.ts | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/quartz/plugins/transformers/toc.ts b/quartz/plugins/transformers/toc.ts
index bfc2f98..791547b 100644
--- a/quartz/plugins/transformers/toc.ts
+++ b/quartz/plugins/transformers/toc.ts
@@ -25,9 +25,7 @@
}
const slugAnchor = new Slugger()
-export const TableOfContents: QuartzTransformerPlugin<Partial<Options> | undefined> = (
- userOpts,
-) => {
+export const TableOfContents: QuartzTransformerPlugin<Partial<Options>> = (userOpts) => {
const opts = { ...defaultOptions, ...userOpts }
return {
name: "TableOfContents",
--
Gitblit v1.10.0