mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
3a3315cc7f
This commit adds capability to format HTML, Svelte, Vue, Astro and Angular files. "--unstable-html" is required to format HTML files, and "--unstable-component" flag is needed to format other formats. These can also be specified in the config file. Close #25015
58 lines
544 B
Markdown
58 lines
544 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;
|
|
}
|
|
```
|
|
|
|
```html
|
|
<div class="container">content</div>
|
|
```
|
|
|
|
```svelte
|
|
<script lang="ts">
|
|
let a: number;
|
|
</script>
|
|
```
|