{"repo":"rodneylab/parsedown","free":true,"listed":false,"github":"https://github.com/rodneylab/parsedown","clone":"git clone https://github.com/rodneylab/parsedown.git","description":"WASM code for parsing Markdown into HTML with light output tweaking","language":"Rust","stars":21,"topics":["html5ever","markdown","markdown-to-html","pulldown-cmark","rust","wasm"],"license":"BSD-3-Clause","category":"productivity","readme_excerpt":"parsedown Light touch Markdown parsing into HTML written in Rust. Generates WASM and can be used with Deno Fresh. - adds an id and anchor link to each h2 heading for easy linking - adds pretty punctuation - uses html5ever for HTML manipulation and pulldown-cmark for Markdown parsing Using Module The module is hosted on deno.x, and you can import directly into your TypeScript project (no need to touch WASM or Rust source). See the later sections below if you want to compile the WASM yourself. - Parse Markdown to HTML Note the id added to the first search match. You can use this to scroll the first match into view. - Parse Markdown to Plain Text - Parse MJML (email template) to HTML Compile WASM (see next section instead, if working with Deno) Method above is tested with Deno, you only need to compile the WASM yourself if you have issues in other runtimes or are customizing the Rust source code for your own needs. 1. Clone the project and change into the project directory. Then run these commands: 2. Copy the generated pkg folder into your JavaScript or TypeScript project. 3. Import and use the code in one of your project source files (expected output is as shown in previous section): - Parse Markdown to HTML - Parse Markdown to Plain Text - Parse MJML (email template) to HTML You must call init once before using any of the other functions. Compile WASM in Deno project If you are working in Deno, you will probably find the wasmbuild package useful. 1. Add a wasmbuild task to yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/rodneylab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rodneylab/parsedown/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."}