deps: Fix Chroma dependency version

Fixes #11311
This commit is contained in:
Joe Mooring 2023-07-31 10:06:51 -07:00 committed by Bjørn Erik Pedersen
parent 92c1594372
commit 58da8554cb
3 changed files with 35 additions and 3 deletions

View file

@ -83,3 +83,35 @@ HighlightCodeBlock: Wrapped:{{ $result.Wrapped }}|Inner:{{ $result.Inner }}
"<code class=\"code-inline language-foo\">(message &#34;highlight me 3&#34;)\n</code>",
)
}
// Issue #11311
func TestIssue11311(t *testing.T) {
t.Parallel()
files := `
-- config.toml --
[markup.highlight]
noClasses = false
-- content/_index.md --
---
title: home
---
§§§go
xəx := 0
§§§
-- layouts/index.html --
{{ .Content }}
`
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,
TxtarString: files,
NeedsOsFS: false,
},
).Build()
b.AssertFileContent("public/index.html", `
<span class="nx">xəx</span>
`)
}