The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix Markdown Render in Self-Hosting Auth page (#16893)
Denzil Samuel01cd02272294
diff --git a/apps/docs/components/Params.tsx b/apps/docs/components/Params.tsxindex 3c494f2cabe..20e800a208f 100644--- a/apps/docs/components/Params.tsx+++ b/apps/docs/components/Params.tsx@@ -1,3 +1,5 @@+import { ReactMarkdown } from 'react-markdown/lib/react-markdown'+type IParamProps = anyconst Param = ({ name, isOptional, type, description, children }: IParamProps) => {@@ -18,7 +20,9 @@ const Param = ({ name, isOptional, type, description, children }: IParamProps) =</span><span className="text-foreground-muted text-xs">{type ?? 'no type'}</span></div>- {description && <p className="text-sm text-foreground-lighter m-0">{description} </p>}+ {description && (+ <ReactMarkdown className="text-sm text-foreground-lighter m-0">{description}</ReactMarkdown>+ )}{children}</div>)diff --git a/apps/docs/components/reference/ApiOperationSection.tsx b/apps/docs/components/reference/ApiOperationSection.tsxindex 3225afa0118..897101f010c 100644--- a/apps/docs/components/reference/ApiOperationSection.tsx+++ b/apps/docs/components/reference/ApiOperationSection.tsx@@ -1,6 +1,7 @@import { CodeBlock, Tabs } from 'ui'import Param from '~/components/Params'import RefSubLayout from '~/layouts/ref/RefSubLayout'+import { ReactMarkdown } from 'react-markdown/lib/react-markdown'const ApiOperationSection = (props) => {const operation = props.spec.operations.find((x: any) => x.operationId === props.funcData.id)@@ -96,7 +97,7 @@ const ApiOperationSection = (props) => {>{operation.responseList.map((response: any, i: number) => (<Tabs.Panel key={i} id={response.responseCode} label={response.responseCode}>- <p className="text-foreground">{response.description}</p>+ <ReactMarkdown className="text-foreground">{response.description}</ReactMarkdown>{response?.content && response?.content['application/json'] && (<div className="mt-8"><CodeBlock language="bash" className="relative">