removeTitle() — supabase Function Reference
Architecture documentation for the removeTitle() function in remarkRemoveTitle.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/lib/mdx/plugins/remarkRemoveTitle.ts lines 10–23
export function removeTitle(title: string) {
return function transformer(root: Parent) {
const [firstNode] = root.children
if (firstNode?.type === 'heading') {
const [text] = firstNode.children
if (text?.type === 'text' && text.value === title) {
// Remove this node
root.children.splice(0, 1)
}
}
}
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free