rehype-pretty-code replaces language-mermaid className with data-language attribute
When detecting mermaid code blocks in MDX components, className='language-mermaid' won't work because rehype-pretty-code transforms it to a data-language attribute and wraps content in span trees.
1 min read