Server MD with Rust

This commit is contained in:
Jarek Rozanski 2026-01-28 20:56:35 +01:00
commit 3899ecce2f
14 changed files with 2823 additions and 0 deletions

17
sample/content/index.md Normal file
View file

@ -0,0 +1,17 @@
# Welcome to Markdown Server
This is the home page served at `/`.
## Available Pages
- [/foo/bar](foo/bar) - Sample page
- [/zap/zap](zap/zap) - Another test page
- [/any/deep/nested/path](any/deep/nested/path) - Deep nesting example
## How it works
The server automatically:
1. Takes the URL path
2. Looks for a corresponding `.md` file in the `./content` directory
3. Converts Markdown to HTML
4. Serves the result