diff --git a/astro.config.ts b/astro.config.ts index 704e41f..86277cf 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -5,7 +5,6 @@ import robotsTxt from 'astro-robots-txt' import { defineConfig } from 'astro/config' import rehypeExternalLinks from 'rehype-external-links' import rehypeKatex from 'rehype-katex' -import rehypeSlug from 'rehype-slug' import remarkDirective from 'remark-directive' import remarkMath from 'remark-math' import UnoCSS from 'unocss/astro' @@ -69,7 +68,6 @@ export default defineConfig({ remarkReadingTime, ], rehypePlugins: [ - rehypeSlug, rehypeKatex, rehypeImgToFigure, [ diff --git a/package.json b/package.json index ad85495..f6b9a6f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "reading-time": "^1.5.0", "rehype-external-links": "^3.0.0", "rehype-katex": "^7.0.1", - "rehype-slug": "^6.0.0", "remark-directive": "^4.0.0", "remark-math": "^6.0.0", "sanitize-html": "^2.16.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34a7688..39976fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,9 +62,6 @@ importers: rehype-katex: specifier: ^7.0.1 version: 7.0.1 - rehype-slug: - specifier: ^6.0.0 - version: 6.0.0 remark-directive: specifier: ^4.0.0 version: 4.0.0 @@ -2369,9 +2366,6 @@ packages: hast-util-from-parse5@8.0.3: resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==} - hast-util-heading-rank@3.0.0: - resolution: {integrity: sha512-EJKb8oMUXVHcWZTDepnr+WNbfnXKFNf9duMesmr4S8SXTJBJ9M4Yok08pu9vxdJwdlGRhVumk9mEhkEvKGifwA==} - hast-util-is-element@3.0.0: resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==} @@ -2393,9 +2387,6 @@ packages: hast-util-to-parse5@8.0.0: resolution: {integrity: sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==} - hast-util-to-string@3.0.1: - resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==} - hast-util-to-text@4.0.2: resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==} @@ -3337,9 +3328,6 @@ packages: rehype-recma@1.0.0: resolution: {integrity: sha512-lqA4rGUf1JmacCNWWZx0Wv1dHqMwxzsDWYMTowuplHF3xH0N/MmrZ/G3BDZnzAkRmxDadujCjaKM2hqYdCBOGw==} - rehype-slug@6.0.0: - resolution: {integrity: sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A==} - rehype-stringify@10.0.1: resolution: {integrity: sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==} @@ -6841,10 +6829,6 @@ snapshots: vfile-location: 5.0.3 web-namespaces: 2.0.1 - hast-util-heading-rank@3.0.0: - dependencies: - '@types/hast': 3.0.4 - hast-util-is-element@3.0.0: dependencies: '@types/hast': 3.0.4 @@ -6934,10 +6918,6 @@ snapshots: web-namespaces: 2.0.1 zwitch: 2.0.4 - hast-util-to-string@3.0.1: - dependencies: - '@types/hast': 3.0.4 - hast-util-to-text@4.0.2: dependencies: '@types/hast': 3.0.4 @@ -8154,14 +8134,6 @@ snapshots: transitivePeerDependencies: - supports-color - rehype-slug@6.0.0: - dependencies: - '@types/hast': 3.0.4 - github-slugger: 2.0.0 - hast-util-heading-rank: 3.0.0 - hast-util-to-string: 3.0.1 - unist-util-visit: 5.0.0 - rehype-stringify@10.0.1: dependencies: '@types/hast': 3.0.4 diff --git a/src/components/Header.astro b/src/components/Header.astro index 3723666..cafa0f4 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -17,7 +17,7 @@ const SubtitleTag = isPost ? 'div' : 'h2'