davidwessman / syntax_tree-erb

Syntax Tree support for ERB
MIT License
21 stars 3 forks source link

Allow html void tags #73

Closed rdimartino closed 5 months ago

rdimartino commented 5 months ago

Hello!

I've been trying to figure out how to get prettier to format my .html.erb files. It seems like https://github.com/adamzapasnik/prettier-plugin-erb is a dead project. But this project you've been working on may be the best way to go.

I have a branch of prettier-plugin-ruby that adds this gem and it's working great. (I also have eyes on this issue which I think would be a great step toward ultimately getting this included as part of the plugin for ruby)

This fix came from trying to use this gem to format my .html.erb files. I was running into syntax errors for void elements that were not explicitly self-closing.

Thanks!

davidwessman commented 5 months ago

Tagged and cut v0.11.0 🙂