Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexis-aquanty opened this issue May 27, 2024 · 3 comments
Open
Assignees

Comments

@alexis-aquanty
Copy link

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
@Shinigami92
Copy link
Member

Shinigami92 commented May 27, 2024

I will bring the project to a new status of dev dependencies and so on
Would you like to create a PR afterwards?


Edit: ok, you can start now

@alexis-aquanty
Copy link
Author

I will bring the project to a new status of dev dependencies and so on Would you like to create a PR afterwards?

Edit: ok, you can start now

I'm not familiar with this codebase and work is keeping me pretty busy for now, so it may be a while before I can look into this myself.

@Shinigami92
Copy link
Member

  1. git clone [email protected]:prettier/plugin-pug.git
  2. install pnpm or use npm corepack
  3. pnpm run preflight
  4. add tests, and debug/console.log yourself through the src codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants