Home / Function/ getTableOfContents() — ui Function Reference

getTableOfContents() — ui Function Reference

Architecture documentation for the getTableOfContents() function in toc.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4ec8b4e4_872a_d67f_91ff_b5da3581d791["getTableOfContents()"]
  6b69cecd_f6b0_5bf0_19b4_7a9032d5992d["toc.ts"]
  4ec8b4e4_872a_d67f_91ff_b5da3581d791 -->|defined in| 6b69cecd_f6b0_5bf0_19b4_7a9032d5992d
  style 4ec8b4e4_872a_d67f_91ff_b5da3581d791 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/lib/toc.ts lines 75–81

export async function getTableOfContents(
  content: string
): Promise<TableOfContents> {
  const result = await remark().use(getToc).process(content)

  return result.data
}

Subdomains

Frequently Asked Questions

What does getTableOfContents() do?
getTableOfContents() is a function in the ui codebase, defined in deprecated/www/lib/toc.ts.
Where is getTableOfContents() defined?
getTableOfContents() is defined in deprecated/www/lib/toc.ts at line 75.

Analyze Your Own Codebase

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

Try Supermodel Free