timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.36k stars 1.84k forks source link

Table of content link is wrong #928

Closed demonhunter3333 closed 1 month ago

demonhunter3333 commented 1 month ago

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"

demonhunter3333 commented 1 month ago

this issue only exists in development, not in production

sorry for the inconvenice