Rust + Wasm web app - markdown to html converter
โ Rust ๐ 2025-10-16 ๐ค surdeus ๐๏ธ 7Hi 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:
- Make sure you have Rust and
wasm-packinstalled. - Clone the repo:
git clone https://github.com/Pjdur/myfirstwasm cd myfirstwasm - Build the WASM package:
wasm-pack build --target web - Serve it locally (you need a server because browsers block
.js(needed to execute the wasm) overfile://):
Or use Python:cargo install miniserve miniserve .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
๐ท๏ธ Rust_feed