Skip to content

MDX: line break inserted between elements and text in JSX blocks #6961

@thorn0

Description

@thorn0

After we merged #6949 to fix #6943, we still have an issue with whitespace between JSX elements and text in JSX blocks.

It actually might be a bug in MDX, see mdx-js/mdx#843. So let's wait with fixing it.

References:

Prettier pr-6949
Playground link

--parser mdx

Input:

<asdf/>zxcv

Output:

<asdf />
zxcv

Expected behavior:

<asdf/>zxcv

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:mdxIssues affecting the MDX extension to Markdown (not general Markdown issues)scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions