diff options
| author | Satya Rohith <me@satyarohith.com> | 2021-01-19 23:09:35 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-19 18:39:35 +0100 |
| commit | 16036a8a5170030a95a56b28b29b1b355d0d0f80 (patch) | |
| tree | 87d6e5dfe13662270df61a5221efe814b4b1f40f /cli/tests/badly_formatted_fixed.md | |
| parent | 4c223d0521bf9711ccd4813a04ba7b1f7899485b (diff) | |
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.
Diffstat (limited to 'cli/tests/badly_formatted_fixed.md')
| -rw-r--r-- | cli/tests/badly_formatted_fixed.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cli/tests/badly_formatted_fixed.md b/cli/tests/badly_formatted_fixed.md new file mode 100644 index 000000000..359a8aead --- /dev/null +++ b/cli/tests/badly_formatted_fixed.md @@ -0,0 +1,23 @@ +# 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; +} +``` |
