Home / Function/ parseHeading() — supabase Function Reference

parseHeading() — supabase Function Reference

Architecture documentation for the parseHeading() function in helpers.mdx.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  eba6aa5b_17ba_040d_88a1_881371bdd96f["parseHeading()"]
  7920f0ed_264a_f954_6f8a_ec73ded46618["processMdx()"]
  7920f0ed_264a_f954_6f8a_ec73ded46618 -->|calls| eba6aa5b_17ba_040d_88a1_881371bdd96f
  style eba6aa5b_17ba_040d_88a1_881371bdd96f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/scripts/helpers.mdx.ts lines 115–122

function parseHeading(heading: string): { heading: string; customAnchor?: string } {
  const match = heading.match(/(.*) *\[#(.*)\]/)
  if (match) {
    const [, heading, customAnchor] = match
    return { heading, customAnchor }
  }
  return { heading }
}

Subdomains

Called By

Frequently Asked Questions

What does parseHeading() do?
parseHeading() is a function in the supabase codebase.
What calls parseHeading()?
parseHeading() is called by 1 function(s): processMdx.

Analyze Your Own Codebase

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

Try Supermodel Free