-
Hello All! Im starting to write a quite big project using MDX 2 (it's the future!). However... one thing that is being an absolute pain in the ass is formatting. Prettier MDX support is very poor and I'm looking for alternatives. What stuff are you guys using to keep your mdx files looking consistent? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This is the core issue im facing with prettier: prettier/prettier#12209 (comment) Basically I have quite a lof of normal MDX inside jsx, and i have to make a hard decision, either i choose to "preserve format" and prettier pretty much doesn't fix anything relevant on the mdx file, or I choose to not preserve format and I have the issue described above. |
Beta Was this translation helpful? Give feedback.
-
I’m using Line 133 in 63fd208 Lines 235 to 247 in 63fd208 |
Beta Was this translation helpful? Give feedback.
-
If anyone one wants to help with MDX 2 support in Prettier, please see #2127 |
Beta Was this translation helpful? Give feedback.
I’m using
remark
withremark-mdx
and a bunch of other plugins. There’s alsoeslint-mdx
that can help.mdx/package.json
Line 133 in 63fd208
mdx/package.json
Lines 235 to 247 in 63fd208