mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
16036a8a51
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.
23 lines
244 B
Markdown
23 lines
244 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;
|
|
}
|
|
```
|