We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815a636 commit 3b51c93Copy full SHA for 3b51c93
.prettierrc.mjs
@@ -14,6 +14,12 @@ export default {
14
parser: "astro",
15
},
16
17
+ // Prettier's MDX formatter wraps inline JSX elements (like <code> and
18
+ // <GlossaryTooltip>) onto new lines, which causes MDX v2+ to inject <p>
19
+ // tags inside them — breaking the rendered HTML. This custom plugin
20
+ // prevents that by keeping configured elements on a single line.
21
+ // This may become unnecessary once prettier adds MDX v3 support:
22
+ // https://github.com/prettier/prettier/issues/12209
23
{
24
files: "*.mdx",
25
options: {
0 commit comments