0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tests/fmt/formatted3.md
Satya Rohith 16036a8a51 feat: add markdown support to deno fmt (#8887)
This commit adds support for formatting markdown files with "deno fmt".

Additionally "--ext={js|jsx|ts|tsx|md}" flag was added to "deno fmt"
that allows to specify file type when providing contents over stdio.
2021-01-19 18:39:35 +01:00

17 lines
118 B
Markdown

# Hello
```js
function foo() {
return 42;
}
foo();
```
```ts
function bar(): number {
return 42;
}
bar();
```