Skip to content

Bug: Tag interpolation not formatted correctly within piped text #486

Open
@alexis-aquanty

Description

Info

Tool Version
Plugin v3.0.0
Prettier v3.2.5
Framework Vue
Node v18.19.0
OS Linux

Prettier config

{
    "plugins": ["@prettier/plugin-pug"],
    "endOfLine": "auto",
    "pugAttributeSeparator": "none",
    "pugCommentPreserveSpaces": "keep-leading",
    "overrides": [
        {
            "files": "*.md",
            "options": {
                "tabWidth": 2
            }
        }
    ]
}

Input

div
    | #[strong foo] bar
    | #[strong foo] bar

Output or Error

div
    |#[strong foo] bar
    |         #[strong foo] bar

Expected Output

div
    | #[strong foo] bar
    | #[strong foo] bar

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions