Home / Function/ extractLinkedSiblings() — supabase Function Reference

extractLinkedSiblings() — supabase Function Reference

Architecture documentation for the extractLinkedSiblings() function in remarkAdmonition.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  8a27dbe0_3850_6088_23e6_d04481fa56dd["extractLinkedSiblings()"]
  1c6cc7f2_caeb_fb83_1fef_f0907c3c713e["remarkMkDocsAdmonition()"]
  1c6cc7f2_caeb_fb83_1fef_f0907c3c713e -->|calls| 8a27dbe0_3850_6088_23e6_d04481fa56dd
  style 8a27dbe0_3850_6088_23e6_d04481fa56dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/mdx/plugins/remarkAdmonition.ts lines 80–91

function extractLinkedSiblings(parent: Root, node: Node, index: number, indentAmount = 4) {
  const { column } = node.position?.start || { column: 0 }

  let nextSibling: Content
  let i = index

  do {
    nextSibling = parent.children[++i]
  } while (nextSibling?.position && nextSibling.position.start.column === column + indentAmount)

  return parent.children.splice(index + 1, i - index - 1)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free