{"repo":"nberlette/comrak-wasm","free":true,"listed":false,"github":"https://github.com/nberlette/comrak-wasm","clone":"git clone https://github.com/nberlette/comrak-wasm.git","description":"TypeScript and WebAssembly bindings for Comrak, the Markdown-to-HTML renderer written in Rust.","language":"TypeScript","stars":13,"topics":["bun","comrak","deno","jsr","markdown","markdown-parsing-rendering","markdown-renderer","markdown-to-html","node","rust"],"license":"MIT","category":"productivity","readme_excerpt":"[ @nick/comrak ] High-performance Markdown to HTML converter powered by WebAssembly. --- Overview @nick/comrak is a fast and efficient Markdown to HTML converter written in Rust, compiled to WebAssembly, and wrapped with a high-level TypeScript API. It renders HTML, CommonMark, and CommonMark XML, and mirrors the configurability of the upstream comrak crate. Usage Convert Markdown to HTML with a single function call: Render any format you need: Parse once and render anywhere: Add plugins for custom rendering: ts\\nlet x = 1;\\n --- Install Install via your preferred package manager: [!IMPORTANT] Support for the jsr: protocol is available in PNPM v10.2+ and Yarn v4.2+. If you're using an older version of these package managers, you can use the dlx command instead. [npm] This package is also distributed on [npm] as [ comrak ][npm]. --- API - markdownToHTML(markdown, options?) Render Markdown to HTML. - markdownToXML(markdown, options?) Render Markdown to CommonMark XML. - markdownToCommonMark(markdown, options?) Render Markdown back to CommonMark. - parseMarkdown(markdown, options?) Parse Markdown into an AST. - renderHTML(ast, options?) Render an AST to HTML. - renderXML(ast, options?) Render an AST to CommonMark XML. - renderCommonMark(ast, options?) Render an AST to CommonMark text. - Options.default() Get a fresh, fully-populated options object. - HeadingAdapter / SyntaxHighlighterAdapter Plug custom heading rendering or code fence highlighting into Comrak. --- Options The Op","default_branch":null,"files":null,"tree":[],"storefront":"/r/nberlette","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nberlette/comrak-wasm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}