2019-12-13 03:00:45 +01:00
2019-12-13 03:00:45 +01:00
2019-12-10 18:17:29 +01:00
2019-12-13 03:00:45 +01:00
2019-12-10 18:14:37 +01:00
2019-12-13 03:00:45 +01:00
2019-12-13 03:00:45 +01:00
2019-12-13 03:00:45 +01:00
2019-12-13 03:00:45 +01:00
2019-12-13 03:00:45 +01:00
2019-12-10 18:14:37 +01:00
2019-12-13 03:00:45 +01:00

Gold

Render markdown on the CLI, with pizzazz!

What is it?

Gold is a Golang library that allows you to use JSON based stylesheets to render Markdown files in the terminal. Just like CSS, you can define color and style attributes on Markdown elements. The difference is that you use ANSI color and terminal codes instead of CSS properties and hex colors.

Usage

See cmd/gold.

Example Output

Gold Dark Style

Check out the Gold Style Gallery!

Colors

Currently gold uses the Aurora ANSI colors.

Development

Style definitions located in styles/ can be embedded into the binary by running statik:

statik -f -src styles -include "*.json"

You can re-generate screenshots of all available styles by running gallery.sh. This requires termshot and pngcrush installed on your system!

S
Description
A temporary, hacked together fork of Glamour v0.7.0 to reduce the startup time and binary size of MUTN while other solutions are evaluated.
Readme MIT
2.6 MiB
Languages
Go 98.5%
Shell 1.5%