Server MD with Rust
This commit is contained in:
commit
3899ecce2f
14 changed files with 2823 additions and 0 deletions
17
sample/content/index.md
Normal file
17
sample/content/index.md
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue