Stillat / blade-parser-typescript

A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
https://stillat.com
MIT License
90 stars 3 forks source link

[Feature Request]: Setting to disable `</html>` and `</body>` validation #101

Closed vinkla closed 6 months ago

vinkla commented 6 months ago

The plugin currently complains if a file has opening <html> and <body> tags but no closing tags. When using this plugin in WordPress and PHP templates (which works mostly great), it is common to place these tags in separate files. It would be helpful to disable the ending tag validation to prevent the following error messages:

[error] footer.php: SyntaxError: Unexpected closing tag "body". It may happen when the tag has already been closed by another tag.
JohnathonKoster commented 6 months ago

Hi there, that behavior comes from Prettier. As such, there is little I can do about that.

vinkla commented 6 months ago

I see, thanks anyway.