/** * The Remark plugin streamlines URL adjustments in Markdown files, * ensuring links remain accurate even after file relocations or inclusions. * * Images and links within the markdown file will have * their paths adjusted to be relative to the new document location. * * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative URLs * for images, definitions, and links * to ensure they are accurate. * * @packageDocumentation */ import type { Transformer, Processor } from 'unified'; declare module 'unified' { interface Data { /** * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative URLs * for images, definitions, and links * to ensure they are accurate. * * @public */ filePathChanges?: { /** * markdown file path before moving or including. * If not specified, file.path used * * @public */ sourcePath?: string; /** * markdown file path after moving or including. * If not specified, / used * * @public */ destinationPath?: string; }; } } /** * The Remark plugin streamlines URL adjustments in Markdown files, * ensuring links remain accurate even after file relocations or inclusions. * * Images and links within the markdown file will have * their paths adjusted to be relative to the new document location. * * When `processor.data().filePathChanges` is set, * this plugin adjusts all relative URLs * for images, definitions, and links * to ensure they are accurate. * * @public */ export declare function remarkRelativeUrlsAdjustment(this: Processor): Transformer; //# sourceMappingURL=index.d.ts.map