Skip to content

MDX formatter adding semicolon to JSX code blocks #5374

@danoc

Description

@danoc

Prettier 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 #3196 and #3330.


Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:multiparserIssues with printing one language inside another, like CSS-in-JSlang:jsxIssues affecting JSX (not general JS issues)lang:mdxIssues affecting the MDX extension to Markdown (not general Markdown issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions