Skip to content

☂️ HTML Parsing and Formatting #4726

Open
9 of 10 issues completed
Open

Description

@dyc3

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, the HTML parser and formatter is publicly available, and it is enabled by default. 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.

Activity

  1. added
    L-HTMLLanguage: HTML and super languages
    on Dec 12, 2024
  2. TyOverby commented on Jan 7, 2025

    @TyOverby
  3. dyc3 commented on Jan 7, 2025

    @dyc3
    Author
  4. sandstrom commented on Jan 23, 2025

    @sandstrom

    Probably something you've thought about, but HTML isn't always the 'vanilla' flavour. Handlebars, Liquid, ERB and several other templating languages exist.

    They often add some 'special tags' on top of HTML.

    As a first, it would be great if it could just 'ignore' those sections, i.e. continue parsing the file but not trying to interpret anything non-standard.

    Then maybe as a second step also understand the handlebars/liquid/erb etc. stuff (probably via plugins?).

  5. ematipico commented on Jan 23, 2025

    @ematipico
    Member
  6. sandstrom commented on Jan 23, 2025

    @sandstrom

    @ematipico Sounds like you've already thought about it! 😄 Great!

  7. ismailkarsli commented on Feb 23, 2025

    @ismailkarsli

    Is there a chance to bring this feature as --experimental?

  8. dyc3 commented on Feb 23, 2025

    @dyc3
    ContributorAuthor

    I'm planning to have the HTML formatter in 2.0 in some form. It just won't be enabled by default most likely so that we can have users try it out and report bugs.

  9. 12 remaining items

  10. dyc3 commented on Dec 11, 2025

    @dyc3
    ContributorAuthor

    @Azarattum There's still significant bugs that prevent us from doing that.

  11. uncenter commented on Dec 11, 2025

    @uncenter
    Contributor

    Wouldn't you argue that it shouldn't be marked as Supported then?

  12. ematipico commented on Dec 12, 2025

    @ematipico
    Member

    Wouldn't you argue that it shouldn't be marked as Supported then?

    Our definition of supported might differ from yours. Our definition is mostly around infrastructure and stability.

    Infrastructure, we're solid. Stability, almost there. So we decided mark it as supported, but still opt-in. We highlighted this multiple times in our blog posts. Would you want to update this table too? If so how?

    Also, this umbrella has nothing to do with HTML-ish languages.

  13. Azarattum commented on Dec 12, 2025

    @Azarattum

    Would you want to update this table too? If so how?

    Putting something like "* requires manual opt-in" bellow the table and marking such languages with an asterisk, would be a great help. I, personally, often skim through this table to assess if I could use biome for a particular project.

    Our definition of supported might differ from yours

    From my point of view 🟡: Experimental feels like "requires opt-in, expect bugs" and ✅: Supported - "production ready, enabled by default"

  14. ematipico commented on Dec 12, 2025

    @ematipico
    Member

    That's fair. We're definitely in a weird situation so apologies if that's confusing. Would you mind sending a PR? You can click the "edit page" link at the bottom

  15. Azarattum commented on Dec 12, 2025

    @Azarattum
  16. BePo65 commented on Feb 19, 2026

    @BePo65

    Perhaps the issues #8336 and #9138 should be subissues of this issue?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-HTMLLanguage: HTML and super languages

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions