Skip to content

[HTML] do not touch unknown directives #5537

@ikatyang

Description

@ikatyang

Prettier 1.15.2
Playground link

--parser html

Input:

<h1> Hello! <%= "123  456  789" %>!</h1>

Output:

<h1>Hello! <%= "123 456 789" %>!</h1>

Expected behavior:
Same as input. Unknown directives (< ... >) should be preserved as-is (context: #5536).

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:htmlIssues affecting HTML (and SVG but not JSX)scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions