Function parseMarkdownToAST

Parse markdown text to AST without HTML conversion

Internal Use Only - Provides direct access to the parsed AST structure for advanced processing scenarios. The AST contains structured node information that can be analyzed, transformed, or used for content extraction.

// Extract structured content for documentation analysis
const { ast, references, lines } = parseMarkdownToAST(`
# Introduction
This is a [link](https://example.com) and ![image](./image.png).
\`\`\`javascript
console.log("Hello world");
\`\`\`
`);
  • Parameters

    • markdown: string

      Raw markdown text to parse

    Returns {
        ast: any[];
        lines: string[];
        references: {};
    }

    Parsed AST with metadata

    • ast: any[]
    • lines: string[]
    • references: {}