summaryrefslogtreecommitdiff
path: root/cli/tests/badly_formatted_fixed.md
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2021-01-19 23:09:35 +0530
committerGitHub <noreply@github.com>2021-01-19 18:39:35 +0100
commit16036a8a5170030a95a56b28b29b1b355d0d0f80 (patch)
tree87d6e5dfe13662270df61a5221efe814b4b1f40f /cli/tests/badly_formatted_fixed.md
parent4c223d0521bf9711ccd4813a04ba7b1f7899485b (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.md23
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;
+}
+```