| Crates.io | livemarkdown |
| lib.rs | livemarkdown |
| version | 0.2.0 |
| created_at | 2025-06-20 22:30:54.277266+00 |
| updated_at | 2025-06-25 22:04:16.421174+00 |
| description | A live markdown renderer that watches files and serves HTML over HTTP |
| homepage | |
| repository | https://github.com/yourusername/livemarkdown |
| max_upload_size | |
| id | 1720337 |
| size | 124,072 |
A Rust application that watches markdown files for changes and renders them as HTML, served via a local HTTP server with real-time updates.
Clone the repository and build the project:
git clone <repository-url>
cd livemarkdown
cargo build --release
Start the server on default port with a markdown file:
cargo run -- --port 3030 ./path/to/your/file.md
--port <PORT> - Specify the port to run the server on[FILE] - Optional path to a markdown file to watch at startupGET / - List all watched documentsGET /document/:id - View rendered markdown documentGET /document/:id/updates - SSE endpoint for real-time updatesPOST /api/document - Create a new watched documentDELETE /api/document/:id - Remove a watched documentPOST /api/document/:id/open - Open document in browserPOST /api/document/:id/position - Update document positionCreate a new document to watch:
curl -X POST http://localhost:3030/api/document \
-H "Content-Type: application/json" \
-d '{"filepath": "./example.md"}'
cargo build # Compile the project
cargo run -- --port=3030 # Build and run
cargo check # Check code without building
cargo test # Run all tests
cargo clippy # Run linter
cargo fmt # Format code
cargo add <crate> # Add dependency
cargo update # Update dependencies
This project is in early development stage.