diff options
author | Steve <acahir@users.noreply.github.com> | 2020-04-13 12:31:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 18:31:33 +0200 |
commit | 102ec2da7adcc4afb7050b17989f0486f8379679 (patch) | |
tree | b748f4911817d1d17e1f5357095299fbf433eebf /commands | |
parent | feaa582cbe950e82969da5e99e3fb9a3947025df (diff) |
commands: Modify gen chromastyles to output all CSS classes
Chroma was updated to include a new function to output all CSS
classes without skipping any considered redundant with the current
style.
This will modify the `hugo gen chromastyles` command to use this new
function by default, which avoids potential problems if the style is
later modified.
Also includes requires the updated Chroma (v0.7.2).
Resolves #7167
Diffstat (limited to 'commands')
-rw-r--r-- | commands/genchromastyles.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/genchromastyles.go b/commands/genchromastyles.go index 1f82d764e..6d54b6ab4 100644 --- a/commands/genchromastyles.go +++ b/commands/genchromastyles.go @@ -68,7 +68,7 @@ func (g *genChromaStyles) generate() error { if err != nil { return err } - formatter := html.New(html.WithClasses(true)) + formatter := html.New(html.WithAllClasses(true)) formatter.WriteCSS(os.Stdout, style) return nil } |