Rust + Wasm web app - markdown to html converter

โš“ Rust    ๐Ÿ“… 2025-10-16    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

Hi all!
I just built my first Rust + WebAssembly browser app โ€” a Markdown-to-HTML converter with live preview, theme switching, and a styled UI. It uses pulldown-cmark in Rust, compiled to WASM, and runs entirely in the browser.

Itโ€™s mostly CSS and UI styling, but the core logic is Rust-powered and itโ€™s my first time trying WASM.

GitHub repo: https://github.com/Pjdur/myfirstwasm

Setup instructions:

  1. Make sure you have Rust and wasm-pack installed.
  2. Clone the repo:
    git clone https://github.com/Pjdur/myfirstwasm
    cd myfirstwasm
    
  3. Build the WASM package:
    wasm-pack build --target web
    
  4. Serve it locally (you need a server because browsers block .js (needed to execute the wasm) over file://):
    cargo install miniserve
    miniserve .
    
    Or use Python:
    python -m http.server 8080
    

Features:

  • Live Markdown editing
  • Toggle between rendered and raw HTML
  • Theme switcher (light/dark/violet)
  • Styled code blocks (no JS libraries)
  • Built with Rust + wasm-bindgen

Would love feedback, ideas, or just sharing in case it helps someone else get started with Rust + WASM!

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed