diff options
author | Helder Pereira <helfper@gmail.com> | 2021-08-21 13:46:18 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-21 16:50:49 +0300 |
commit | d966f5d08d7f75f1ae9acd94e292bf61de2adf0d (patch) | |
tree | 38e8f633a8df0acfe97581d4686efa66a3178a7a /hugolib | |
parent | 3f38c785b7208440e2a9dd9a80cb39d4ae23e676 (diff) |
highlight: Remove some pygments references
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/config.go | 1 | ||||
-rw-r--r-- | hugolib/embedded_shortcodes_test.go | 4 | ||||
-rw-r--r-- | hugolib/shortcode_test.go | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index 945d9eec6..aa9c81104 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -278,7 +278,6 @@ func (l configLoader) applyConfigDefaults() error { "disablePathToLower": false, "hasCJKLanguage": false, "enableEmoji": false, - "pygmentsCodeFencesGuessSyntax": false, "defaultContentLanguage": "en", "defaultContentLanguageInSubdir": false, "enableMissingTranslationPlaceholders": false, diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index 53ad2fe8e..b56368ddd 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -104,8 +104,8 @@ void do(); th = newTestHelper(cfg, fs, t) ) - cfg.Set("pygmentsStyle", "bw") - cfg.Set("pygmentsUseClasses", false) + cfg.Set("markup.highlight.style", "bw") + cfg.Set("markup.highlight.noClasses", true) writeSource(t, fs, filepath.Join("content", "simple.md"), fmt.Sprintf(`--- title: Shorty diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 7eb0d01de..6ef110c9b 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -619,8 +619,8 @@ title: "Foo" cfg.Set("uglyURLs", false) cfg.Set("verbose", true) - cfg.Set("pygmentsUseClasses", true) - cfg.Set("pygmentsCodefences", true) + cfg.Set("markup.highlight.noClasses", false) + cfg.Set("markup.highlight.codeFences", true) cfg.Set("markup", map[string]interface{}{ "defaultMarkdownHandler": "blackfriday", // TODO(bep) }) |