import type { Root } from 'mdast'; import type { Plugin } from 'unified'; /** * Transform inline html nodes with expression attributes * inside paragraphs into `mdxJsxTextElement`s. * * Runs after `mdxishComponentBlocks`, which skips paragraph-parented html * nodes and leaves them for this pass. Two producers put html nodes inside * paragraphs: * 1. The `mdxComponent` text tokenizer, for lowercase tags with `{…}` * attribute expressions (e.g. `here`). * 2. CommonMark's built-in html-text tokenizer, for PascalCase components * (e.g. a single html node for self-closing ``). * * Eligibility mirrors `mdxishComponentBlocks`: lowercase tags only promote * when they carry an expression attribute; plain inline HTML like * `` stays as an html node for rehype-raw. */ declare const mdxishInlineMdxHtmlBlocks: Plugin<[{ safeMode?: boolean; }?], Root>; export default mdxishInlineMdxHtmlBlocks;