Prettier adds extra new lines when run twice on mdx with inline tags #6274
Labels
area:idempotency
Issues with re-printing Prettier’s output
lang:mdx
Issues affecting the MDX extension to Markdown (not general Markdown issues)
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.18.2
Playground link
Input:
Output:
Second Output:
SyntaxError: Unexpected token (1:37) > 1 | <dfn data-title="testing">end</dfn> and then some additional words. | ^
Expected behavior:
The output from this sample might be fine, but after prettier runs on it again, it throws an error in the playground: Playground link
This seems to be an error specific to the playground. Locally, when I run prettier@1.18.2 twice over the sample text, this is what I get:
The extra new line causes the markdown parser to break up what was originally a single line into two paragraphs.
The text was updated successfully, but these errors were encountered: