MDX formatter adding semicolon to JSX code blocks
See original GitHub issuePrettier 1.15.1 (Seems like the playground doesn’t support MDX yet?)
# Options (if any):
Default options
Input:
test.mdx
:
This is a MDX file!
```jsx
<Button />
```
Output:
This is a MDX file!
```jsx
<Button />;
```
Expected behavior:
This is a MDX file!
```jsx
<Button />
```
This seems related to https://github.com/prettier/prettier/issues/3196 and https://github.com/prettier/prettier/pull/3330.
Thanks for the help!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Options - Prettier
Prettier ships with a handful of format options. ... false - Only add semicolons at the beginning of lines that may introduce ASI...
Read more >Syntax highlighting - MDX
This guide explores how to apply syntax highlighting to code blocks. MDX supports standard markdown syntax (CommonMark).
Read more >How to add semicolon to the end of the line in visual studio code
Now there is an extension called Colonize: Shift + Enter Insert semicolon at the end of line and continue on the same line....
Read more >Guide to Writing MDX and Markdown | Chicago Docs
Overview. The official MDX site describes MDX as 'an authorable format that lets you seamlessly write JSX in your Markdown documents.
Read more >prettierx | Yarn - Package Manager
prettierX - a less opinionated fork of Prettier ... An unofficial fork of the Prettier code formatter, intended to provide some additional options...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, yes. Sorry if that wasn’t originally clear.
That’s exactly what @danoc described in the issue, and Prettier is inserting a semicolon