diff options
author | Joe Mooring <[email protected]> | 2023-07-31 10:06:51 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-31 21:01:43 +0200 |
commit | 58da8554cb8e5a996f0a1429f23d4e9a59d61b77 (patch) | |
tree | 31f8011d03f4a2b7bd6b196683084bf4d7958286 /markup/highlight | |
parent | 92c1594372474fc9f7d2948ea0ae541ddace9a74 (diff) | |
download | hugo-58da8554cb8e5a996f0a1429f23d4e9a59d61b77.tar.gz hugo-58da8554cb8e5a996f0a1429f23d4e9a59d61b77.zip |
deps: Fix Chroma dependency version
Fixes #11311
Diffstat (limited to 'markup/highlight')
-rw-r--r-- | markup/highlight/integration_test.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/markup/highlight/integration_test.go b/markup/highlight/integration_test.go index 2b4379bc2..ce6705f02 100644 --- a/markup/highlight/integration_test.go +++ b/markup/highlight/integration_test.go @@ -83,3 +83,35 @@ HighlightCodeBlock: Wrapped:{{ $result.Wrapped }}|Inner:{{ $result.Inner }} "<code class=\"code-inline language-foo\">(message "highlight me 3")\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> + `) +} |