bug: [plugin:fumadocs-mdx:mdx] Error parsing style attribute inside code blocks
bug
### To Reproduce
1. Set up a Fumadocs project.
2. Create an MDX file and add a standard code block with syntax highlighting.
3. Run the development server or try to build the project.
4. The build fails immediately with the MDX parsing error.
### Current vs. Expected behavior
**Current behavior:**
The project fails to compile or run, throwing the following error due to the syntax highlighter attempting to inject inline styles inside code blocks:
`[plugin:fumadocs-mdx:mdx] Could not parse style attribute on span`
**Expected behavior:**
The MDX files should compile successfully, and the code blocks should render with properly highlighted syntax without breaking the build.
### Provide environment information
```bash
* OS: Linux
* Package Manager: pnpm
* Core Libraries: React Router
```
### Which area(s) are affected? (Select all that apply)
TypeScript (built-in types)
### Additional context
It seems the MDX compiler or the underlying syntax highlighter (Shiki/Rehype) is attempting to parse inline styles on the generated `<span>` tags incorrectly.
Could you please look into how code blocks are being processed by the `fumadocs-mdx` plugin, or let me know if there's a specific configuration/dependency version adjustment to fix this? Thank you!
2 条评论