2026-03-18 21:32:53 +08:00
2026-03-18 21:31:50 +08:00
2026-03-18 21:32:45 +08:00
2026-03-18 21:31:59 +08:00
2026-03-18 21:32:53 +08:00

md_reader

A simple Markdown reader with Mermaid diagram support.

Features

  • Render Markdown to HTML
  • Batch convert Markdown files
  • HTTP server for serving files
  • Mermaid diagram support with SVG export
  • Preview in browser

Installation

cargo build --release

Usage

Render a single file

md_reader render document.md -o output.html

Batch convert

md_reader batch ./docs/ -o ./html/

Start HTTP server

md_reader server -p 8080 -d ./docs/

Preview in browser

md_reader preview document.md

Mermaid Support

md_reader supports rendering Mermaid diagrams in Markdown files.

Usage

Use mermaid code blocks:

```mermaid
graph TD
    A[Start] --> B[End]
```

Supported Diagram Types

  • Flowchart
  • Sequence Diagram
  • Class Diagram
  • State Diagram
  • Gantt Chart
  • Pie Chart
  • Entity Relationship Diagram

SVG Export

Hover over any Mermaid diagram and click "Download SVG" to download the vector graphic.

License

MIT

Description
No description provided
Readme 55 KiB
Languages
Rust 100%