Escape hatch for not wrapping line in paragraph? #2573
-
| I have some MDX like this: <a href=""> Link </a>And this package is wrapping the inner contents with a Now, I could do the original MDX all on one line, but Prettier, even with strict white space sensitivity, reverts it to the multi-line variant. I think this is because both are supposed to be equivalent in HTML/markdown. For now, I've found a work-around of wrapping the inner contents in a <a href=""> <span>Link</span> </a>Do you have any better recommendations? Jekyll/Kramdown has this escape hatch to disable markdown parsing for a particular section like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| I recently answered this on StackOverflow. TL;DR use a JSX expression: { <a href=""> Link </a> }Also Prettier doesn’t support MDX 3. I recommend adding |
Beta Was this translation helpful? Give feedback.
I recently answered this on StackOverflow.
TL;DR use a JSX expression:
Also Prettier doesn’t support MDX 3. I recommend adding
*.mdxto.prettierignorefor now.