Skip to content

Commit

Permalink
feat: add Astro support
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Feb 18, 2024
1 parent cb0db42 commit 413edd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/web_fmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ version.workspace = true

[dependencies]
biome_fmt = { workspace = true, default-features = false }
malva = { version = "0.1.4", features = ["config_serde"] }
markup_fmt = { version = "0.3.2", features = ["config_serde"] }
malva = { version = "0.1.5", features = ["config_serde"] }
markup_fmt = { version = "0.4.0", features = ["config_serde"] }
serde = { workspace = true, features = ["derive"] }
serde-wasm-bindgen = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
Expand Down
1 change: 1 addition & 0 deletions crates/web_fmt/src/format_markup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub(crate) fn detect_language(path: impl AsRef<Path>) -> Option<Language> {
b"html" => Some(Language::Html),
b"vue" => Some(Language::Vue),
b"svelte" => Some(Language::Svelte),
b"astro" => Some(Language::Astro),
b"jinja" | b"jinja2" | b"twig" => Some(Language::Jinja),
_ => Some(Language::Html),
}
Expand Down

0 comments on commit 413edd4

Please sign in to comment.