The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix parsing of headings with code
Terry Sutton48bc79dd7162
diff --git a/apps/docs/components/CustomHTMLElements/CustomHTMLElements.utils.ts b/apps/docs/components/CustomHTMLElements/CustomHTMLElements.utils.tsindex 6bae9755003..a8e2414a9b0 100644--- a/apps/docs/components/CustomHTMLElements/CustomHTMLElements.utils.ts+++ b/apps/docs/components/CustomHTMLElements/CustomHTMLElements.utils.ts@@ -1,13 +1,18 @@export const getAnchor = (text: any): string | undefined => {+ let formattedTextif (typeof text === 'object') {- const formattedText = text.map((x) => {- if (typeof x !== 'string') {- return x.props.children- } else {- return x.trim()- }- })- return formattedText.join('-').toLowerCase()+ if (Array.isArray(text)) {+ formattedText = text.map((x) => {+ if (typeof x !== 'string') {+ return x.props.children+ } else {+ return x.trim()+ }+ })+ return formattedText.join('-').toLowerCase()+ } else {+ return text.props.children+ }} else if (typeof text === 'string') {return text.toLowerCase()