mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Use Chroma as new default syntax highlighter
If you want to use Pygments, set `pygmentsUseClassic=true` in your site config. Fixes #3888
This commit is contained in:
committed by
GitHub
parent
81ed564793
commit
fb33d8286d
@@ -226,9 +226,14 @@ func TestPlainify(t *testing.T) {
|
||||
func newDeps(cfg config.Provider) *deps.Deps {
|
||||
l := helpers.NewLanguage("en", cfg)
|
||||
l.Set("i18nDir", "i18n")
|
||||
cs, err := helpers.NewContentSpec(l)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return &deps.Deps{
|
||||
Cfg: cfg,
|
||||
Fs: hugofs.NewMem(l),
|
||||
ContentSpec: helpers.NewContentSpec(l),
|
||||
ContentSpec: cs,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user