Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MDX] Does not keep indentation in multiline strings #16138

Closed
disog opened this issue Mar 6, 2024 · 1 comment
Closed

[MDX] Does not keep indentation in multiline strings #16138

disog opened this issue Mar 6, 2024 · 1 comment
Labels
type:duplicate Issues that are a duplicate of a previous issue

Comments

@disog
Copy link

disog commented Mar 6, 2024

Prettier 3.2.5
Playground link

--parser mdx

Input:

export const textWithIndentation = `

const a = {
  b: 1,
  c: {
    d: 2,
  }
};
`;

Output:

export const textWithIndentation = `

const a = {
b: 1,
c: {
d: 2,
}
};
`;

Expected output:

export const textWithIndentation = `

const a = {
  b: 1,
  c: {
    d: 2,
  }
};
`;

Why?

Because it should keep indentation in multiline strings.

@kachkaev
Copy link
Member

kachkaev commented Mar 8, 2024

👋 @disog! I guess that this bug is a special case of #12209. Let’s track the issue there.

@kachkaev kachkaev closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2024
@kachkaev kachkaev added the type:duplicate Issues that are a duplicate of a previous issue label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:duplicate Issues that are a duplicate of a previous issue
Projects
None yet
Development

No branches or pull requests

2 participants