What is Ember?
Ember is the Rust equivalent of glow from Charmbracelet. It renders Markdown with beautiful syntax highlighting and styling directly in your terminal.
Features
- 📝 Full Markdown Support - Headers, bold, italic, code, lists, and more
- 🎨 Beautiful Themes - Dark, light, and Molten brand themes
- 🖼️ Code Blocks - Syntax-aware rendering with borders
- 📋 Lists - Ordered and unordered with proper indentation
- 📎 Links - Underlined and colored for visibility
- 💬 Blockquotes - Styled with vertical bars
- ➖ Horizontal Rules - Clean separators
Installation
As a library
As a CLI tool
Quick Start
Library Usage
use render;
let markdown = r#"
# Welcome to Ember 🔥
This is **bold** and *italic* text.
## Code Example
```rust
fn main() {
println!("Hello, Ember!");
}
- Item one
- Item two
- Item three
This is a blockquote "#;
let rendered = render(markdown); println!("{}", rendered);
### CLI Usage
```bash
# Render a file
ember README.md
# Render from stdin
cat README.md | ember
# Use a different theme
ember README.md --theme molten
# Set custom width
ember README.md --width 100
Themes
Ember comes with three beautiful themes:
Dark Theme (default)
use ;
let rendered = render_with_theme;
Light Theme
let rendered = render_with_theme;
Molten Theme
let rendered = render_with_theme;
Custom Theme
use ;
use Color;
let theme = new
.width
.colors;
let rendered = render_with_theme;
Supported Markdown Elements
| Element | Syntax | Output |
|---|---|---|
| Heading | # Title |
Bold, colored |
| Bold | **text** |
Bold |
| Italic | *text* |
Italic |
| Code | `code` |
Highlighted |
| Code Block | ``` |
Bordered box |
| Link | [text](url) |
Underlined |
| List | - item |
Bulleted |
| Blockquote | > text |
Indented, styled |
| Rule | --- |
Horizontal line |
CLI Options
)
)
Ecosystem
Ember is part of the Molten Labs open source ecosystem:
| Crate | Description |
|---|---|
| molten_brand | Design tokens & colors |
| glyphs | ANSI escape sequences |
| lacquer | Terminal styling |
| cauldron | TUI framework |
| sparks | TUI components |
| rune | Shell glamour |
| ember | Markdown renderer (you are here) |
| smelt | Pretty logging |
Why "Ember"?
Like glowing embers in a forge, Ember brings warmth and light to your terminal, illuminating your Markdown documents with beautiful rendering. 🔥
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.