@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
13 lines • 507 B
TypeScript
import type { Plugin } from 'unified';
/**
* Rehype plugin that transforms pre > code elements to use loadVariant
*
* This plugin:
* 1. Finds pre elements in the HTML AST
* 2. Collects all code children within each pre element
* 3. Creates variants from multiple code elements or single Default variant
* 4. Uses loadVariant to process each variant
* 5. Stores the combined precompute data on the pre element
* 6. Clears all code element contents
*/
export declare const transformHtmlCode: Plugin;