main: fix code to work with new chroma package
This commit is contained in:
parent
335d8d7afb
commit
d40413602b
2
main.go
2
main.go
|
@ -58,7 +58,7 @@ func highlight(w io.Writer, source, lexer, style string) error {
|
||||||
l = chroma.Coalesce(l)
|
l = chroma.Coalesce(l)
|
||||||
|
|
||||||
// Determine formatter.
|
// Determine formatter.
|
||||||
f := html.New(html.WithClasses(), html.TabWidth(4))
|
f := html.New(html.WithClasses(true), html.TabWidth(4))
|
||||||
|
|
||||||
// Determine style.
|
// Determine style.
|
||||||
s := styles.Get(style)
|
s := styles.Get(style)
|
||||||
|
|
Loading…
Reference in New Issue