mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-27 02:20:39 +02:00
38 lines
790 B
Markdown
38 lines
790 B
Markdown
# 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 github.com/charmbracelet/gold
|
|
```
|
|
|
|
Fetch markdown from an HTTP source:
|
|
```
|
|
./gold -s dark.json https://host.tld/file.md
|
|
```
|
|
|
|
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](https://godoc.org/github.com/logrusorgru/aurora#Index).
|
|
|
|
## Example Output
|
|
|
|

|