Terminal Markdown Preview CLI powered by MoonBit
npm install @kawaz/mdpTerminal Markdown Preview CLI powered by MoonBit and mizchi/markdown.mbt.
- ANSI color output for terminal
- Syntax highlighting for code blocks
- Tables, task lists, blockquotes
- Works with Node.js and Bun
``bash`
npm install -g @kawaz/mdp
`bashPreview a file
mdp README.md
Example Output
`
Heading ← magenta + bold
Subheading ← blue + bold
This is bold and italic text.
• Bullet point ← yellow marker
☑ Completed task ← green checkbox
☐ Pending task ← gray checkbox
┌─ javascript ─────────────┐
│ const x = 1; │ ← cyan code
└──────────────────────────┘
│ A blockquote ← italic
| Name | Value | ← table with borders
├──────┼───────┤
| foo | 123 |
`Performance
| Runtime | Startup |
|---------|---------|
| Node.js | ~70ms |
| Bun | ~27ms |
Development
Requires MoonBit toolchain.
`bash
Build
just buildRun locally
just run README.mdRun with Bun
just run-bun README.md
``MIT