From c9efcea73c9dc47e738864403a83a128eeefd86c Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 31 Mar 2016 13:14:57 +0200 Subject: [PATCH] Disable syntax guessing for PygmentsCodeFences by default This disables highlighting for fenced code blocks without explicitly specified language. It also introduces a new `PygmentsCodeFencesGuessSyntax` config option (defaulting to false). To enable syntax guessing again, add the following to your config file: `PygmentsCodeFencesGuessSyntax = true` This is a breaking change. --- content/overview/configuration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/overview/configuration.md b/content/overview/configuration.md index 600e420d7..33813beb4 100644 --- a/content/overview/configuration.md +++ b/content/overview/configuration.md @@ -126,6 +126,8 @@ Following is a list of Hugo-defined variables that you can configure and their c preserveTaxonomyNames: false # filesystem path to write files to publishdir: "public" + # enables syntax guessing for code fences without specified language + pygmentsCodeFencesGuessSyntax: false # color-codes for highlighting derived from this style pygmentsStyle: "monokai" # true: use pygments-css or false: color-codes directly