The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: use heading id for TOC anchors instead of querying anchor tags (#41702)
Maksym Ionutsae8e91234e792
diff --git a/apps/docs/features/docs/GuidesMdx.client.tsx b/apps/docs/features/docs/GuidesMdx.client.tsxindex ae9e29e1912..546e4342e01 100644--- a/apps/docs/features/docs/GuidesMdx.client.tsx+++ b/apps/docs/features/docs/GuidesMdx.client.tsx@@ -36,8 +36,7 @@ const TocAnchorsProvider = ({ children }: PropsWithChildren) => {.filter((heading) => heading.id).map((heading) => {const text = heading.textContent?.replace('#', '') || ''- const link = heading.querySelector('a')?.getAttribute('href')- if (!link) return null+ const link = heading.id ? `#${heading.id}` : nullconst level = heading.tagName === 'H2' ? 2 : 3