js-beautify: blade template formating bug
`@if($gateway )
<div class="row"> <div class="col-xs-12"> </div> </div> @endif` formating this piece of code which include blade template, removes first line " @if($gateway )"About this issue
- Original URL
- State: open
- Created 8 years ago
- Reactions: 4
- Comments: 16 (4 by maintainers)
@bitwiseman yes, thatโs correct. In my opinion it would be a good start to be able to ignore
@
-tags completely@bitwiseman At the time I looked at creating a PR for this project, or two other similar projects (projects which format HTML)
Unfortunately most of the projects were whole lexers and token analyzers and were complicated and would have taken several hours to understand before I ever made any additions to the code.
It was just quicker to import a DOM parser and re-build the HTML tree with the desired formatting ๐ Which is what I did
@saeedphr GitHub parses HTML, so I think the HTML comment got stripped in your comment there ๐
You might want to put the solution in a code block