mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -05:00

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.
17 lines
118 B
Markdown
17 lines
118 B
Markdown
# Hello
|
|
|
|
```js
|
|
function foo() {
|
|
return 42;
|
|
}
|
|
|
|
foo();
|
|
```
|
|
|
|
```ts
|
|
function bar(): number {
|
|
return 42;
|
|
}
|
|
|
|
bar();
|
|
```
|