Home / Function/ markdown() — supabase Function Reference

markdown() — supabase Function Reference

Architecture documentation for the markdown() function in route.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  d68977a7_34df_d1ec_582b_057b3711267d["markdown()"]
  a8b2ed85_9c96_f71a_d0f5_d7ba1cc4835c["sectionDetails()"]
  a8b2ed85_9c96_f71a_d0f5_d7ba1cc4835c -->|calls| d68977a7_34df_d1ec_582b_057b3711267d
  8f6a0334_7e54_74da_51d9_09923e133677["getRefMarkdown()"]
  d68977a7_34df_d1ec_582b_057b3711267d -->|calls| 8f6a0334_7e54_74da_51d9_09923e133677
  b9edb290_cbe4_8b14_1abd_72f64b6de0c6["mdxToHtml()"]
  d68977a7_34df_d1ec_582b_057b3711267d -->|calls| b9edb290_cbe4_8b14_1abd_72f64b6de0c6
  style d68977a7_34df_d1ec_582b_057b3711267d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/app/api/crawlers/route.ts lines 120–126

async function markdown(lib: string, version: string | null, section: AbbrevApiReferenceSection) {
  const dir = !!section.meta?.shared ? 'shared' : lib + (version ? '/' + version : '')

  let content = await getRefMarkdown(dir + '/' + section.slug)
  content = mdxToHtml(content)
  return content
}

Subdomains

Called By

Frequently Asked Questions

What does markdown() do?
markdown() is a function in the supabase codebase.
What does markdown() call?
markdown() calls 2 function(s): getRefMarkdown, mdxToHtml.
What calls markdown()?
markdown() is called by 1 function(s): sectionDetails.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free