Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☂️ HTML Parsing and Formatting #4726

Open
2 of 11 tasks
dyc3 opened this issue Dec 12, 2024 · 2 comments
Open
2 of 11 tasks

☂️ HTML Parsing and Formatting #4726

dyc3 opened this issue Dec 12, 2024 · 2 comments
Labels
L-HTML Language: HTML

Comments

@dyc3
Copy link
Contributor

dyc3 commented Dec 12, 2024

Description

This will track the overall status of the HTML parser and formatter. This issue can be closed when the feature flag for HTML is removed, and the HTML parser and formatter is publicly available. This does not track anything for the HTML analyzer (for lint rules).

This is necessary in order for Biome to support framework specific template languages, like Vue, Svelte, and Angular. If you are a user of one of these frameworks, Biome already has support for processing embedded JS/TS in these files, but with some caveats. We have recommended configuration here to help provide the best experience for the time being.

Status

Overall: Kinda flaky, but technically functional.

How to Contribute

All well defined smaller tasks can be found by looking at the L-HTML label. Looking to contribute? Start by looking there.

@TyOverby
Copy link

TyOverby commented Jan 7, 2025

This issue can be closed when the feature flag for HTML is removed, and the HTML parser and formatter is publicly available.

What is this feature flag? In addition to the automated tests, I'd like to be able to run the main biome executable while hacking on html support!

@dyc3
Copy link
Contributor Author

dyc3 commented Jan 7, 2025

I'm referring to this:

experimental-html = ["biome_service/experimental-html"]

The easiest way to hack on the formatter is to use the quick_test thing we have set up: https://github.com/biomejs/biome/blob/next/crates/biome_html_formatter/tests/quick_test.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-HTML Language: HTML
Projects
None yet
Development

No branches or pull requests

2 participants