IOweb/node_modules/@astrojs/mdx/dist/rehype-optimize-static.d.ts
2026-07-03 15:07:38 -05:00

12 lines
510 B
TypeScript

import type { RehypePlugin } from '@astrojs/internal-helpers/markdown';
export interface OptimizeOptions {
ignoreElementNames?: string[];
}
/**
* For MDX only, collapse static subtrees of the hast into `set:html`. Subtrees
* do not include any MDX elements.
*
* This optimization reduces the JS output as more content are represented as a
* string instead, which also reduces the AST size that Rolldown holds in memory.
*/
export declare const rehypeOptimizeStatic: RehypePlugin<[OptimizeOptions?]>;