#markdown #web-server #directory #markdown-parser #editing #serving #editor

app md-dir-builder

Webserver for serving all markdown files in a directory

6 releases

0.3.1 Apr 15, 2023
0.3.0 Apr 15, 2023
0.2.2 Mar 22, 2023
0.2.1 Dec 19, 2022
0.1.0 Sep 27, 2022

#596 in HTTP server

GPL-3.0-or-later

655KB
2K SLoC

Rust 1.5K SLoC // 0.1% comments JavaScript 364 SLoC // 0.0% comments

md-dir-builder

A markdown directory server for a cool editing experience with any editor.

This project also shows how to implement concurrent systems in Rust (with tokio).

Clone & run

git clone https://github.com/codefionn/md-dir-builder-rs
cd md-dir-builder-rs
cargo run -- -p 8082

Get help:

cargo run -- --help

Markdown parsing

Currently markdown parsing is done with the pulldown-cmark library (like mdBook).

TODO

  • Handle connection losses to server
  • Adjustable IP-address (currently 127.0.0.1 and ::1 are used)
  • Allow images in Markdown files

Vendored dependencies

  • Prismjs: For cool code highlighting

Dependencies

~22–36MB
~514K SLoC