Wasm markdown parser example with Rust

reference: https://www.youtube.com/watch?v=Mj6hTGo0oGc

Demo

Development

Requirements

  • rustup
  • rust 1.35.0
  • node.js >= 10.x
  • npm >= 6.x
rustup install 1.35.0
rustup default 1.35.0
rustup target add wasm32-unknown-unknown
rustup component add rustfmt
rustup component add clippy
cargo install wasm-bindgen-cli
cargo install cargo-watch

build

git clone <REPOSITORY_URL>
cd rust_wasm_markdown_parser

# Compile rust code
npm run build:wasm-debug
## or
npm run build:wasm-release

# Run webpack-dev-server
npm install
npm run dev
open http://localhost:8080

format code

cargo fmt

LISENCE

MIT