Syntax Demo Download JSR GitHub Visual Studio Marketplace

ダウンロード

Visual Studio Code 拡張機能 - Indentdown live preview

通常はVisual Studio Marketplaceからインストールしてください。

"拡張機能" > "VSIX からのインストール"

indentdown-0.0.3.vsix

ブラウザ用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