Home / Function/ Markdown() — supabase Function Reference

Markdown() — supabase Function Reference

Architecture documentation for the Markdown() function in Markdown.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Markdown.tsx lines 15–36

export const Markdown = ({
  children,
  className,
  content = '',
  extLinks = false,
  ...props
}: PropsWithChildren<MarkdownProps>) => {
  return (
    <ReactMarkdown
      remarkPlugins={[remarkGfm]}
      components={{
        h3: ({ children }) => <h3 className="mb-1">{children}</h3>,
        code: ({ children }) => <code className="text-code-inline">{children}</code>,
        a: ({ href, children }) => <InlineLink href={href ?? '/'}>{children}</InlineLink>,
      }}
      {...props}
      className={cn('text-sm', className)}
    >
      {(children as string) ?? content}
    </ReactMarkdown>
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free