Skip to content

AST Access

Mayank edited this page Jun 22, 2025 · 1 revision

🧬 Access AST (MDAST & HAST)

You can pass a ref to extract parsed syntax trees:

type astRef = {
  current: { mdast: Root; hast: HastRoot }[];
};

Useful for:

  • DOCX/PDF generation
  • Linting or analytics
  • Structural validation or transformation

Clone this wiki locally