mdxToHtml() — supabase Function Reference
Architecture documentation for the mdxToHtml() function in route.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD b9edb290_cbe4_8b14_1abd_72f64b6de0c6["mdxToHtml()"] d68977a7_34df_d1ec_582b_057b3711267d["markdown()"] d68977a7_34df_d1ec_582b_057b3711267d -->|calls| b9edb290_cbe4_8b14_1abd_72f64b6de0c6 e2411768_86c0_d660_902b_4725903ef9ad["examplesToHtml()"] e2411768_86c0_d660_902b_4725903ef9ad -->|calls| b9edb290_cbe4_8b14_1abd_72f64b6de0c6 style b9edb290_cbe4_8b14_1abd_72f64b6de0c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/api/crawlers/route.ts lines 159–177
function mdxToHtml(markdown: string): string {
const mdast = fromMarkdown(markdown, {
extensions: [mdxjs()],
mdastExtensions: [mdxFromMarkdown()],
})
visit(mdast, 'text', (node) => {
node.value = node.value.replace(/\n/g, ' ')
})
if (!mdast) return ''
const hast = toHast(mdast)
if (!hast) return ''
// @ts-ignore
const html = toHtml(hast)
return html
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mdxToHtml() do?
mdxToHtml() is a function in the supabase codebase.
What calls mdxToHtml()?
mdxToHtml() is called by 2 function(s): examplesToHtml, markdown.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free