Visual Studio Code 拡張機能 - Indentdown live preview
ブラウザ用JavaScript
<script type="module">
import { Indentdown } from "./Indentdown.js";
console.log(Indentdown.getHtml("Header\n paragraph"));
</script>
Indentdown.js
ランタイム用TypeScript
通常はJSRからインポートしてください。
import { Indentdown } from "jsr:@kenta/test2";
console.log(Indentdown.getHtml("Header\n paragraph"));
Indentdown.ts
CLI用TypeScript
$ echo -e 'Header\n Paragraph' | deno run ./indentdown.ts
または
$ deno run --allow-read ./indentdown.ts ./test.id
indentdown.ts