0.0.1 • Published 6 months ago

@web-alchemy/markdown-wasm v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

WebAssembly build of Rust lib pulldown-cmark for Node.js

Installation

npm install @web-alchemy/markdown-wasm

Usage example:

import { parse } from '@web-alchemy/markdown-wasm';

const markdownSource = `# title
  Some text
  
  ![some image alt](image.png)
`;

const html = parse(makdownSource);

console.log(html)
/*
<h1>title</h1>
  <p>Some text</p>
  <p><img src="image.png" alt="some image alt" /></p>
*/

Development

  • Install Node.js
  • Install dev dependencies - npm ci.
  • Modify source code in src folder and write tests in test folder.
  • Create build - node --run build. pkg folder should contains npm package files.
  • Run tests - node --run test.
0.0.1

6 months ago

0.0.0

6 months ago