1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/testdata/fmt/badly_formatted_fixed.md
Pig Fang 82884348cb
feat(fmt): support CSS, SCSS, Sass and Less (#24870)
This PR integrates [Malva](https://github.com/g-plane/malva) into `deno
fmt`, which introduces the ability to format CSS, SCSS, Sass and Less
files.

On Linux x64 6.10, this PR increases about 800KiB:

```                                                                                                                                                                      
❯ wc -c target/release/deno
125168728 target/release/deno

❯ wc -c target/release/deno
124349456 target/release/deno
```
2024-08-09 18:52:23 +02:00

48 lines
433 B
Markdown

# Hello Markdown
```js
console.log("Hello World");
```
```javascript
console.log("Hello World2");
```
```ts
function hello(name: string) {
console.log(name);
}
hello("alice");
```
```typescript
function foo(): number {
return 2;
}
```
```jsonc
{
// Comment in JSON
"key": "value",
"key2": "value2"
}
```
```json
{
"numbers": ["1", "2"]
}
```
```yaml
- item1
- item2
```
```css
#app > .btn {
color: #000;
}
```