Skip to content

Markdown: do not remove leading & trailing no-break whitespaces in inline code blocks #3755

@maximbaz

Description

@maximbaz

Prettier 1.10.2
Playground link

--parser markdown

Input:

preserve leading and trailing no-break whitespaces in inline code: `   hello   `

Output:

preserve leading and trailing no-break whitespaces in inline code: `hello`

Expected behavior:

preserve leading and trailing no-break whitespaces in inline code: `   hello   `

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownpriority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!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