Support hex color values in style config

While we don't support extended color ranges just yet, this approximates
the hex value to the closest color value in the ANSI 256-color chart.
This commit is contained in:
Christian Muehlhaeuser
2019-12-05 11:43:56 +01:00
parent 31ad9136b5
commit 39a6da5fe7
4 changed files with 69 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ go 1.13
require (
github.com/alecthomas/chroma v0.7.0
github.com/logrusorgru/aurora v0.0.0-20191017060258-dc85c304c434
github.com/lucasb-eyer/go-colorful v1.0.3
github.com/mattn/go-isatty v0.0.10
github.com/mattn/go-runewidth v0.0.7
github.com/microcosm-cc/bluemonday v1.0.2