Convert markdown files into beautiful, shareable HTML pages with zero external dependencies.
When a user wants to render a markdown file:
```bash
python3 scripts/convert.py
```
```bash
open
```
```bash
canvas present file://
```
# Converts ai-landscape-2026.md → ai-landscape-2026.html
python3 scripts/convert.py ai-landscape-2026.md
python3 scripts/convert.py input.md -o /path/to/output.html
python3 scripts/convert.py notes.md -t "My Research Notes"
The converter handles:
text or __text__)text or _text_)language ... ``)code)text)- , * , + )---, *, ___)Token efficiency: Template is pre-built; only markdown content flows through the context window.
Zero dependencies: Pure Python + self-contained HTML template with embedded CSS.
Progressive enhancement: Works offline, no CDN required, renders instantly.
scripts/convert.py on their fileassets/template.htmlPer conversion:
Total: ~650 tokens vs ~8000 tokens for generating full HTML each time.
By default, output is saved next to the input file:
notes.md → notes.html/path/to/doc.md → /path/to/doc.htmlUse -o flag to specify custom location.
共 1 个版本