summaryrefslogtreecommitdiffstats
path: root/markup
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2023-07-31 10:06:51 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-31 21:01:43 +0200
commit58da8554cb8e5a996f0a1429f23d4e9a59d61b77 (patch)
tree31f8011d03f4a2b7bd6b196683084bf4d7958286 /markup
parent92c1594372474fc9f7d2948ea0ae541ddace9a74 (diff)
deps: Fix Chroma dependency version
Fixes #11311
Diffstat (limited to 'markup')
-rw-r--r--markup/highlight/integration_test.go32
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 &#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>
+ `)
+}