Skip to content

Markdown doesn't format table correctly if column contains `` #3753

@max-baz

Description

@max-baz

Prettier 1.10.2
Playground link

--parser markdown

Input:

| col1 | col2 | col3 |
|---|--|--|
| long text | `` | text |

Output:

| col1      | col2      | col3 |
| --------- | --------- | ---- |
| long text | `` | text |

Expected behavior:

| col1      | col2      | col3 |
| --------- | --------- | ---- |
| long text | ``        | text |

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions