Home / Function/ linkTransform() — supabase Function Reference

linkTransform() — supabase Function Reference

Architecture documentation for the linkTransform() function in rehypeLinkTransform.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  5c2c3460_cac1_3001_e37c_a595f4a6aec7["linkTransform()"]
  e363e39f_975a_97ad_2570_b817c13ec590["modify()"]
  5c2c3460_cac1_3001_e37c_a595f4a6aec7 -->|calls| e363e39f_975a_97ad_2570_b817c13ec590
  style 5c2c3460_cac1_3001_e37c_a595f4a6aec7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/mdx/plugins/rehypeLinkTransform.ts lines 24–31

export function linkTransform(fn?: UrlTransformFunction) {
  return function transformer(tree: Node) {
    visit(tree, 'element', (node: Element) => {
      modify(node, 'href', fn)
      modify(node, 'src', fn)
    })
  }
}

Subdomains

Calls

Frequently Asked Questions

What does linkTransform() do?
linkTransform() is a function in the supabase codebase.
What does linkTransform() call?
linkTransform() calls 1 function(s): modify.

Analyze Your Own Codebase

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

Try Supermodel Free