/** * Rehype plugin to rewrite relative image paths to absolute URIs. * * This plugin is primarily used in VS Code webview context where relative * image paths need to be converted to vscode-webview-resource: URIs. * * The base URI is obtained from DocumentService. */ import type { Root } from 'hast'; /** * Rehype plugin to rewrite image src attributes */ export default function rehypeImageUri(): (tree: Root) => void;