glow/cmd/gold
Christian Muehlhaeuser b600bc47ef Use ElementStyles to determine rendering style
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.
2019-11-24 23:33:25 +01:00
..
.goreleaser.yml Add goreleaser config to help automate builds for various platforms 2019-11-24 02:39:02 +01:00
dark.json Use ElementStyles to determine rendering style 2019-11-24 23:33:25 +01:00
github.go Find README(.md) in current working dir when no arg was supplied 2019-11-24 05:07:14 +01:00
gold_dark.png Add screenshot of dark theme 2019-11-24 05:21:12 +01:00
main.go Move Render and RenderBytes to TermRenderer 2019-11-24 13:35:01 -06:00
README.md Add screenshot of dark theme 2019-11-24 05:21:12 +01:00

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.

Example Output

Gold Dark Theme