mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
3a3315cc7f
This commit adds capability to format HTML, Svelte, Vue, Astro and Angular files. "--unstable-html" is required to format HTML files, and "--unstable-component" flag is needed to format other formats. These can also be specified in the config file. Close #25015
628 B
628 B
Hello Markdown
console.log("Hello World"
)
console.log("Hello World2"
)
function hello(name: string ) {
console.log(name);
};
hello( "alice");
function foo(): number {
return 2;
}
{
// Comment in JSON
"key": "value",
"key2":
"value2",
}
{
"numbers":
["1", "2"]
}
- item1
- item2
#app>.btn{ color : #000 }
<div class=container > content </div>
<script lang=ts>
let a:number
</script>