/** * scanner.ts — Context-aware Markdown link extractor. * * Walks through Markdown line-by-line, tracking state (normal, inlineCode, * fencedCode, indentedCode) and only extracts `[text](url)` inline links * when in normal text. * * This replaces the naive global regex that matched links inside code blocks. */ /** A discovered inline link with exact byte positions for replacement. */ export interface InlineLink { text: string; url: string; start: number; end: number; } /** Extract all genuine inline `[text](url)` links that are NOT inside code. */ export declare function extractInlineLinks(md: string): InlineLink[]; /** Extract reference-style definitions `[ref]: url`. */ export declare function extractRefDefs(md: string): Array<{ label: string; url: string; }>; //# sourceMappingURL=scanner.d.ts.map