mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-26 18:14:17 +02:00
Since BlackFriday's Nodes are limiting us a bit in rendering flexibility, I've introduced Gold's own ElementStyles (a bit of code repetition here, but alas). Nodes can now be divided into multiple fragments, which means we are able to display the link's URL and text in different styles. Updated the dark theme to demo the newly gained flexibility. |
||
|---|---|---|
| .. | ||
| .goreleaser.yml | ||
| dark.json | ||
| github.go | ||
| gold_dark.png | ||
| main.go | ||
| README.md | ||
Gold
Render markdown on the CLI, with pizzazz!
Usage
Supply a JSON stylesheet with the -s flag. Use a markdown source as the argument.
Read from file:
./gold -s dark.json README.md
Read from stdin:
./gold -s dark.json -
Fetch README from GitHub:
./gold -s dark.json https://github.com/charmbracelet/gold
When gold is started without any markdown source, it will try to find a README.md
or README file in the current working directory.
Colors
Currently gold uses the Aurora ANSI colors.
