Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve <acahir@users.noreply.github.com>2020-04-13 19:31:33 +0300
committerGitHub <noreply@github.com>2020-04-13 19:31:33 +0300
commit102ec2da7adcc4afb7050b17989f0486f8379679 (patch)
treeb748f4911817d1d17e1f5357095299fbf433eebf /commands
parentfeaa582cbe950e82969da5e99e3fb9a3947025df (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.go2
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
}