You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to configure rehype-pretty-code alongside rehype-mdx-code-props in a next-mdx-remote setup but haven’t managed to get it to work as expected. I'm aiming to enable syntax highlighting with custom props for code blocks in MDX files, but I’m not seeing the expected output.
I’m not a developer, so I apologize if this is a basic question. I’d appreciate any insights or tips to get this working. Could it be an issue with the plugin order, or do I need to handle props differently?
Expected Behavior:
The filename prop should be rendered in a header above each code block.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered:
No worries, it's a good question!
could you share link to your source code or a https://stackblitz.com/ link? I'll be able to help you faster with that. Otherwise I'll look into it next week.
I'm trying to configure rehype-pretty-code alongside rehype-mdx-code-props in a next-mdx-remote setup but haven’t managed to get it to work as expected. I'm aiming to enable syntax highlighting with custom props for code blocks in MDX files, but I’m not seeing the expected output.
Setup Details:
Here’s my current configuration:
My MDX Components:
MDX
I’m not a developer, so I apologize if this is a basic question. I’d appreciate any insights or tips to get this working. Could it be an issue with the plugin order, or do I need to handle props differently?
Expected Behavior:
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: