Skip to content

Allow html void tags#73

Merged
davidwessman merged 3 commits intodavidwessman:mainfrom
rdimartino:html-void-tags
Apr 23, 2024
Merged

Allow html void tags#73
davidwessman merged 3 commits intodavidwessman:mainfrom
rdimartino:html-void-tags

Conversation

@rdimartino
Copy link
Copy Markdown

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!

Copy link
Copy Markdown
Owner

@davidwessman davidwessman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@davidwessman davidwessman merged commit b91d2b8 into davidwessman:main Apr 23, 2024
@davidwessman
Copy link
Copy Markdown
Owner

Tagged and cut v0.11.0 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants