md_parser_wasm

Crates.iomd_parser_wasm
lib.rsmd_parser_wasm
version0.3.5
sourcesrc
created_at2024-03-01 13:20:21.729043
updated_at2024-03-01 13:27:03.147799
descriptionA markdown parser written in Rust and compiled to WebAssembly
homepage
repositoryhttps://github.com/manishsingh10895/markdown-parser-rust
max_upload_size
id1158896
size2,998,648
Manish Singh (manishsingh10895)

documentation

README

Markdown Parser (WIP)

Simple Markdown parser in rust which is compiled to wasm and presented to browser with svelte

To build just the rust part

  • cargo build
  • wasm-pack build

Run rust tests

cargo test

To setup frontend

cd web and yarn or npm install

To run everything after compiling to wasm

cd web and yarn dev

Currently supports parsing

  • unordered lists
  • ordered lists
  • simple texts
  • Headings (#, ##, ###)
  • Bold text, **text**
  • Code `code`
  • Anchor Links (x)[y]

Using through CLI

md_parser is also available as a CLI tool

USAGE:

md_parser_wasm --file <input_file>

Using as an npm package

This is also published as an npm package. Can be used in frontend projects using

npm i -S wasm_md_parser

Preview

preview

Demo

demo

Commit count: 0

cargo fmt