diff options
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> + `) +} |