https://github.com/nberlette/comrak-wasm
TypeScript and WebAssembly bindings for Comrak, the Markdown-to-HTML renderer written in Rust.
https://github.com/nberlette/comrak-wasm
bun comrak deno jsr markdown markdown-parsing-rendering markdown-renderer markdown-to-html node rust typescript wasm webassembly
Last synced: about 1 month ago
JSON representation
TypeScript and WebAssembly bindings for Comrak, the Markdown-to-HTML renderer written in Rust.
- Host: GitHub
- URL: https://github.com/nberlette/comrak-wasm
- Owner: nberlette
- License: mit
- Created: 2025-03-23T01:26:56.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-03-23T02:23:55.000Z (about 1 month ago)
- Last Synced: 2025-03-23T02:27:55.658Z (about 1 month ago)
- Topics: bun, comrak, deno, jsr, markdown, markdown-parsing-rendering, markdown-renderer, markdown-to-html, node, rust, typescript, wasm, webassembly
- Language: TypeScript
- Homepage: https://jsr.io/@nick/comrak
- Size: 1.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# comrak-wasm
[](https://doc.deno.land/https/deno.land/x/[email protected]/mod.ts)
WASM bindings for the
[comrak markdown renderer](https://github.com/kivikakk/comrak).> Rust port of [GitHub's `cmark-gfm`](https://github.com/github/cmark-gfm).
> A 100% CommonMark and GFM compatible Markdown parser. The design is based on
> cmark, so familiarity with that will help.## How to use
```ts
import * as comrak from "https://deno.land/x/[email protected]/mod.ts";
await comrak.init();comrak.markdownToHTML("Hello, **世界**!"); //
Hello, 世界!
\n
```The second argument is an options bag that can be used to customize parsing
behaviour. The exact arguments can be found on the
[deno doc](https://doc.deno.land/https/deno.land/x/[email protected]/mod.ts) page.## Thanks
Thanks to the authors of comrak
([Asherah Connor @kivikakk](https://github.com/sponsors/kivikakk)).Additional thanks to the @denosaurs folks for the build.ts script this repo
uses.