-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Prettier format url path with number incorrectly #5654
Comments
As a workaround, you could use quoted url for now: Prettier 1.15.3 --parser css Input: body {
background: url('http://123.example.com');
} Output: body {
background: url("http://123.example.com");
} |
Maybe I can help to fix this. Could you give me some advise. |
As far as I remember, the issue is that the parser doesn’t treat the whole |
I have spent some time on |
Bug in parser, |
Seems to be complicated. Would be glad if I can do some help. |
@jasonxia23 I can't, i am banned, sorry, this guys violated Code of Conduct many times and i don't want use his code and work with him also, so we will switch on better and right solution like |
@evilebottnawi Maybe parser should not parse |
Yes, unquoted urls are a special case in the tokenization: https://www.w3.org/TR/css-syntax-3/#url-token-diagram |
@lydell @jasonxia23 evilbotnawi is banned from my repos because he has violated the code of conduct in my repos repeatedly, is generally a toxic individual to work with, and (as evidenced by his comments here) likes to repeat lies about me on various social media sites. I'm more than happy to help to resolve this bug, but if the intention of the project is to just use a different module soon anyways, I'll keep my focus on the new version rewrite instead. I won't be offended at all I promise, I just have limited time because we'll be welcoming a child soon 😄 |
I have published v3.0.0-beta.2 of |
Prettier 1.15.3
Playground link
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: