Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
6
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Rust project called
livemarkdown-rs - appears to be a markdown-related tool based on the name. Currently in early development stage with minimal implementation.
cargo build - Compile the projectcargo run -- --port=3030 - Build and run the applicationcargo check - Check code without building (faster feedback)cargo test - Run all tests (using axum_test for integration tests)cargo clippy - Run Rust linter for code qualitycargo fmt - Format code according to Rust standardscargo add <crate_name> - Add a new dependencycargo update - Update dependencies to latest compatible versionsCurrently a single-file Rust application with:
src/main.rs - Entry point with basic Hello World implementationCargo.toml - Project configuration and dependenciesfacet for JSON serialization. And it is forbidden to use serde in this project. lib.rs has example of how to use facet for JSON serialization.A rust application that watches changes in a markdown file and renders into an html by serving it over local http server.
--port option to run the server.
--port 8080 ./path/to/file.mdPOST /api/document which creates a markdown that is watched with { filepath: string; }. And returns a document id with { id: string }DELETE /api/document/:id removes a file that is watched.POST /api/document/:id/open opens the file in the browser.POST /api/document/:id/position sends a desired document position that { sourcepos: string; }GET / should return the list of documents as an HTML page with links to the documents.GET /document/:idGET /document/:id/updates) which updates the browser clients for the latest active document position and and update event when the file contents are changedcomrak: Render markdown with github flavor and sourceposnotify and notify-debouncer-mini: File watcheraxum: HTTP serverfacet: JSON serialization[x] Implement CLI args parsing [x] Implement basic HTTP server with
axum
[x] Integrate facet for JSON serialization
[x] Add integration tests using axum_test
[x] Modularize server code into src/lib.rs
[x] Integrate comrak to render markdown to HTML with source position
[x] Add CLI arg to specify a document to render at start
[x] Implement SSE for real-time updates
[x] Add tests for SSE
[x] Implement file watching using notify and notify-debouncer-mini
[x] CSS markup for markdown (light and dark mode)
[x] Debug file watching
[x] Replacing the content of the file with the new content in the client
[x] Add error handling and logging
[x] Style the index file
[x] Make hashing consistent for filepaths
[ ] Use file streams for reading files
[ ] Image support
[ ] Prevent injection attacks for HTML rendering at root