timlrx/tailwind-nextjs-starter-blog

Table of content link is wrong

demonhunter3333 opened this issue · 1 comments

Describe the bug
Table of content link is wrong.

e.g. it shows this link within the page: "http://localhost:3000/title#heading-1", instead of "http://localhost:3000/title#heading"

This bug happens only when there are H3 tags (in markdown: "### heading").

Expected behavior
Each link named "heading" in the table of content component links to "http://localhost:3000/title#heading"

this issue only exists in development, not in production

sorry for the inconvenice