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

Print empty columns in markdown table #15970

Open
fisker opened this issue Jan 21, 2024 · 1 comment · May be fixed by #16231
Open

Print empty columns in markdown table #15970

fisker opened this issue Jan 21, 2024 · 1 comment · May be fixed by #16231
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program

Comments

@fisker
Copy link
Member

fisker commented Jan 21, 2024

Prettier 3.2.4
Playground link

--parser markdown

Input:

a | b |c
:-- | :-- | :--
a | b | c
a | b

Output:

| a   | b   | c   |
| :-- | :-- | :-- |
| a   | b   | c   |
| a   | b   |

Expected output:

| a   | b   | c   |
| :-- | :-- | :-- |
| a   | b   | c   |
| a   | b   |     |

Why?

Prettier than current output.

@sosukesuzuki sosukesuzuki added type:bug Issues identifying ugly output, or a defect in the program lang:markdown Issues affecting Markdown labels Jan 28, 2024
@yanapeycheva
Copy link

Hello,
I know what the problem here is and I am working to fix it. @sosukesuzuki Can you please assign this issue to me?

Thanks!

@yanapeycheva yanapeycheva linked a pull request Apr 23, 2024 that will close this issue
4 tasks
yanapeycheva pushed a commit to iuliaaai/prettier that referenced this issue Apr 23, 2024
yanapeycheva pushed a commit to iuliaaai/prettier that referenced this issue Apr 29, 2024
yanapeycheva pushed a commit to iuliaaai/prettier that referenced this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants