Skip to content

markdown 0.1.0

Install from the command line:
Learn more about npm packages
$ npm install @wasm-fmt/markdown@0.1.0
Install via package.json:
"@wasm-fmt/markdown": "0.1.0"

About this version

Test

Install

npm

npm install @wasm-fmt/markdown

jsr.io

npx jsr add @fmt/markdown

Usage

Node.js / Deno / Bun / Bundler

import { format } from "@wasm-fmt/markdown";

const input = `#  Hello wasm-fmt

1. markdown
2. clang-format
2. gofmt
2. ruff_fmt
`;

const formatted = format(input, {
	// config
});
console.log(formatted);

Web

For web environments, you need to initialize WASM module manually:

import init, { format } from "@wasm-fmt/markdown/web";

await init();

const input = `#  Hello wasm-fmt

1. markdown
2. clang-format
2. gofmt
2. ruff_fmt
`;

const formatted = format(input);
console.log(formatted);

Vite

import init, { format } from "@wasm-fmt/markdown/vite";

await init();
// ...

Entry Points

  • . - Auto-detects environment (Node.js uses node, Webpack uses bundler, default is ESM)
  • ./node - Node.js environment (no init required)
  • ./esm - ESM environments like Deno (no init required)
  • ./bundler - Bundlers like Webpack (no init required)
  • ./web - Web browsers (requires manual init)
  • ./vite - Vite bundler (requires manual init)

Credits

Thanks to:

Details


Assets

  • markdown-0.1.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0