Closed RobertBlaauwendraad closed 1 month ago
Also, the code inside the <body>
tag doesn't get indented, which I think is nice However <html>
does give indentation, maybe remove that as well?
I cannot reproduce this with the provided template. This is usually caused by having unpaired elements (such as those inside conditions/etc.), which causes issues with prettier. I would also check to see if this is caused by something similar to this on your end:
https://github.com/Stillat/blade-parser-typescript/issues/109#issuecomment-2278090058
Feel free to re-open if that is not the case.
Also, the code inside the
tag doesn't get indented, which I think is nice However does give indentation, maybe remove that as well?
IF the formatter encounters a catastrophic error, the original content will be returned. With valid input, code inside the <body>
will get indented.
Gives:
Wrapping
<body @php(body_class())>
and</body>
withformat-ignore
resolves the problem