Skip to content

[Markdown] CRLFs in codeblock are duplicated #5413

@ikatyang

Description

@ikatyang

Originally reported by @paolovanini in prettier/prettier-vscode#624

Prettier 1.15.1
Playground link(not reproducible on playground)

--parser markdown

(<cr> <lf> represent \r \n)

Input:

```<cr><lf>
<cr><lf>
```<cr><lf>

Output:

```<cr><lf>
<cr><cr><lf>
<cr><cr><lf>
```<cr><lf>

Expected behavior:
No duplicate.

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.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions