Skip to content

Unstable md tagged template literal #5885

@lydell

Description

@lydell

Prettier 1.16.4
Playground link

--parser babylon

Input:

<Node>{md`
  Test
`}</Node>

Output:

<Node>{md`Test`}</Node>;

Second Output:

<Node>{md`
Test
`}</Node>;

Expected behavior:

<Node>{md`
  Test
`}</Node>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idempotencyIssues with re-printing Prettier’s outputarea:multiparserIssues with printing one language inside another, like CSS-in-JSlang:javascriptIssues affecting JS

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions