language-formatters-pre-commit-hooks icon indicating copy to clipboard operation
language-formatters-pre-commit-hooks copied to clipboard

Add hook for xml and html

Open Goldziher opened this issue 1 year ago • 2 comments
trafficstars

Please add a hook for formatting xml and html

Goldziher avatar Jun 01 '24 14:06 Goldziher

Pull requests are always welcome.

A few caveats

  • HTML format parsing and formatting can be troublesome due to general HTML not having all closing tabs
  • XML formatting depends on a set of canonisation rules that could make it complicated
  • we need to ensure that the same semantic content is rendered into a unique way

I won't have bandwidth to actually do it myself, but I'll be happy to review PRs.

macisamuele avatar Jun 01 '24 17:06 macisamuele

Appreciate it. I'm afraid I too am overbooked. Maybe someone else will be game.

Goldziher avatar Jun 03 '24 17:06 Goldziher

  • https://docs.enola.dev/use/canonicalize/#html
  • https://docs.enola.dev/use/canonicalize/#xml

vorburger avatar Sep 29 '25 01:09 vorburger