main: fix code to work with new chroma package

This commit is contained in:
Kevin Burke 2020-05-09 13:50:39 -07:00
parent 335d8d7afb
commit d40413602b
No known key found for this signature in database
GPG Key ID: D1D71AA4DED6C5C4
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func highlight(w io.Writer, source, lexer, style string) error {
l = chroma.Coalesce(l)
// Determine formatter.
f := html.New(html.WithClasses(), html.TabWidth(4))
f := html.New(html.WithClasses(true), html.TabWidth(4))
// Determine style.
s := styles.Get(style)