diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-25 08:59:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 08:59:02 +0200 |
commit | fb33d8286d78a78a74deb44355b621852a1c4033 (patch) | |
tree | a726e33fbaa0ca7a315a2e12021306fd5b27690e /tpl/collections | |
parent | 81ed564793609a32be20a569cc15da2cc02dd734 (diff) |
Use Chroma as new default syntax highlighter
If you want to use Pygments, set `pygmentsUseClassic=true` in your site config.
Fixes #3888
Diffstat (limited to 'tpl/collections')
-rw-r--r-- | tpl/collections/collections_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/collections/collections_test.go b/tpl/collections/collections_test.go index c82d3c3bb..f35e29459 100644 --- a/tpl/collections/collections_test.go +++ b/tpl/collections/collections_test.go @@ -776,10 +776,14 @@ type TstX struct { 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, Log: jww.NewNotepad(jww.LevelError, jww.LevelError, os.Stdout, ioutil.Discard, "", log.Ldate|log.Ltime), } } |