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

deno fmt: support html/svg/xml #20205

Open
mfulton26 opened this issue Aug 18, 2023 · 2 comments
Open

deno fmt: support html/svg/xml #20205

mfulton26 opened this issue Aug 18, 2023 · 2 comments
Labels
deno fmt Related to the "deno fmt" subcommand or dprint suggestion suggestions for new features (yet to be agreed)

Comments

@mfulton26
Copy link

deno fmt already formats JSX & TSX. Would it be too much extra work to also support formatting HTML, SVG, and other XML files (e.g. XML itself, XHTML, etc.)?

Today I keep reaching for Prettier on these occasions but I'd rather rely Deno for more core formatting needs. This support could likely be reused with tagged templates (#19840).

@bartlomieju bartlomieju added suggestion suggestions for new features (yet to be agreed) deno fmt Related to the "deno fmt" subcommand or dprint labels Aug 29, 2023
@bartlomieju
Copy link
Member

I would be in favor of that, but it's a question for @dsherret if there's any appetite for supporting these natively in dprint.

@bartlomieju
Copy link
Member

Formatting .html files is now supported. I believe support for formatting .svg files is just a matter of recognizing these files, while .xml might be harder to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno fmt Related to the "deno fmt" subcommand or dprint suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants