Home / Function/ extractLinkedSiblings() — supabase Function Reference

extractLinkedSiblings() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  79e741f0_6b5e_3805_d9ce_d21040e04151["extractLinkedSiblings()"]
  338597d5_a45e_59aa_37ea_69304bfc49d3["remarkPyMdownTabs()"]
  338597d5_a45e_59aa_37ea_69304bfc49d3 -->|calls| 79e741f0_6b5e_3805_d9ce_d21040e04151
  style 79e741f0_6b5e_3805_d9ce_d21040e04151 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/mdx/plugins/remarkTabs.ts lines 127–139

function extractLinkedSiblings(parent: Root, node: Node, index: number, indentAmount = 4) {
  if (!node.position) return []
  const { column } = node.position.start

  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): remarkPyMdownTabs.

Analyze Your Own Codebase

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

Try Supermodel Free