Skip to content

Commit

Permalink
fix TOC href empty anchor error
Browse files Browse the repository at this point in the history
  • Loading branch information
Moroshima committed Nov 18, 2023
1 parent 9925d3b commit edb971c
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export default withMDX({
},
],
[rehypePrism, { ignoreMissing: true, showLineNumbers: true }],
[rehypeToc, { headings: ["h2", "h3", "h4", "h5", "h6"] }],
rehypeSlug,
[rehypeToc, { headings: ["h2", "h3", "h4", "h5", "h6"] }],
[
rehypeAutolinkHeadings,
{
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"@giscus/react": "^2.3.0",
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@next/mdx": "14.0.1",
"@next/mdx": "14.0.3",
"@primer/octicons-react": "^19.8.0",
"markdown-it": "^13.0.2",
"next": "14.0.1",
"next": "14.0.3",
"next-sitemap": "^4.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -38,12 +38,12 @@
},
"devDependencies": {
"@types/markdown-it": "^13.0.6",
"@types/node": "^20.9.0",
"@types/node": "^20.9.1",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/rss": "^0.0.32",
"eslint": "^8.53.0",
"eslint-config-next": "14.0.1",
"eslint": "^8.54.0",
"eslint-config-next": "14.0.3",
"sass": "^1.69.5",
"typescript": "^5.2.2"
}
Expand Down
Loading

0 comments on commit edb971c

Please sign in to comment.