aboutsummaryrefslogtreecommitdiffhomepage
path: root/helpers/content_renderer.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/content_renderer.go')
-rw-r--r--helpers/content_renderer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/content_renderer.go b/helpers/content_renderer.go
index 6bd2212e1..dbc29f431 100644
--- a/helpers/content_renderer.go
+++ b/helpers/content_renderer.go
@@ -34,8 +34,8 @@ type HugoHTMLRenderer struct {
}
func (renderer *HugoHTMLRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string) {
- if viper.GetBool("PygmentsCodeFences") && (lang != "" || viper.GetBool("PygmentsCodeFencesGuessSyntax")) {
- opts := viper.GetString("PygmentsOptions")
+ if viper.GetBool("pygmentsCodeFences") && (lang != "" || viper.GetBool("pygmentsCodeFencesGuessSyntax")) {
+ opts := viper.GetString("pygmentsOptions")
str := html.UnescapeString(string(text))
out.WriteString(Highlight(str, lang, opts))
} else {
@@ -117,7 +117,7 @@ type HugoMmarkHTMLRenderer struct {
}
func (renderer *HugoMmarkHTMLRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string, caption []byte, subfigure bool, callouts bool) {
- if viper.GetBool("PygmentsCodeFences") && (lang != "" || viper.GetBool("PygmentsCodeFencesGuessSyntax")) {
+ if viper.GetBool("pygmentsCodeFences") && (lang != "" || viper.GetBool("pygmentsCodeFencesGuessSyntax")) {
str := html.UnescapeString(string(text))
out.WriteString(Highlight(str, lang, ""))
} else {