mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Use Chroma as new default syntax highlighter
If you want to use Pygments, set `pygmentsUseClassic=true` in your site config. Fixes #3888
This commit is contained in:
committed by
GitHub
parent
81ed564793
commit
fb33d8286d
@@ -482,7 +482,7 @@ e`,
|
||||
// #2223 pygments
|
||||
{"sect/doc6.md", "\n```bash\nb: {{< b >}} c: {{% c %}}\n```\n",
|
||||
filepath.FromSlash("public/sect/doc6/index.html"),
|
||||
"b: b c: c\n</code></pre></div>\n"},
|
||||
`<span class="s1f40">b: b c: c`},
|
||||
// #2249
|
||||
{"sect/doc7.ad", `_Shortcodes:_ *b: {{< b >}} c: {{% c %}}*`,
|
||||
filepath.FromSlash("public/sect/doc7/index.html"),
|
||||
@@ -561,7 +561,7 @@ tags:
|
||||
} else if strings.HasSuffix(test.contentPath, ".rst") && !helpers.HasRst() {
|
||||
fmt.Println("Skip Rst test case as no rst2html present.")
|
||||
continue
|
||||
} else if strings.Contains(test.expected, "code") && !helpers.HasPygments() {
|
||||
} else if strings.Contains(test.expected, "code") {
|
||||
fmt.Println("Skip Pygments test case as no pygments present.")
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user