import type { Root } from 'mdast'; import type { Plugin } from 'unified'; /** * Remark plugin that rewrites source-relative markdown links to routed, * extensionless URLs that still work once pages are emitted with trailing * slashes. * * URL rewriting: * - `quickstart.md` from `docs/index.md` → `./quickstart/` * - `documentation/commands.md` from `docs/guide/cli-reference.md` * → `../documentation/commands/` * - `../reference/index.md` from `docs/guide/concepts.md` → `../../reference/` * - `quickstart.md#setup` → `./quickstart/#setup` * - Absolute URLs and anchors are left unchanged. * * Display text cleanup: * - When a link's only child is an `inlineCode` node whose value looks like * a `.md` path (e.g., `` [`cli/index.md`](cli/index.md) ``), the extension * is stripped from the display text too, keeping the raw markdown AI-navigable * while rendering clean labels on the web. */ export declare const remarkLinks: Plugin<[], Root>; //# sourceMappingURL=remark-links.d.ts.map