mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -05:00
d9b1f96897
This commit adds support for formatting JSON and JSONC in "deno fmt". New values "json" and "jsonc" are added to "--ext" flag for standard input processing.
37 lines
361 B
Markdown
37 lines
361 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"]
|
|
}
|
|
```
|