diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-09-25 08:59:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-09-25 08:59:02 +0200 |
commit | fb33d8286d78a78a74deb44355b621852a1c4033 (patch) | |
tree | a726e33fbaa0ca7a315a2e12021306fd5b27690e /helpers/testhelpers_test.go | |
parent | 81ed564793609a32be20a569cc15da2cc02dd734 (diff) | |
download | hugo-fb33d8286d78a78a74deb44355b621852a1c4033.tar.gz hugo-fb33d8286d78a78a74deb44355b621852a1c4033.zip |
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 'helpers/testhelpers_test.go')
-rw-r--r-- | helpers/testhelpers_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/testhelpers_test.go b/helpers/testhelpers_test.go index 86f141146..518a5bc23 100644 --- a/helpers/testhelpers_test.go +++ b/helpers/testhelpers_test.go @@ -34,5 +34,9 @@ func newTestCfg(fs *hugofs.Fs) *viper.Viper { func newTestContentSpec() *ContentSpec { v := viper.New() - return NewContentSpec(v) + spec, err := NewContentSpec(v) + if err != nil { + panic(err) + } + return spec } |