Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/markup
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-11-20 11:30:05 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-11-20 11:30:05 +0300
commitb298c06e0551e3eba10b39ae5668b7a6a36a08a7 (patch)
tree94c66c09e0477ba30be9963af9d13b6c29aa39bb /markup
parent55e290af41ad1c92af13679d4a84d64985d41456 (diff)
deps: Update to Chroma v0.8.2
Closes #7970
Diffstat (limited to 'markup')
-rw-r--r--markup/highlight/highlight_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/markup/highlight/highlight_test.go b/markup/highlight/highlight_test.go
index f5992a512..228d5e8c9 100644
--- a/markup/highlight/highlight_test.go
+++ b/markup/highlight/highlight_test.go
@@ -87,9 +87,9 @@ User-Agent: foo
h := New(cfg)
result, _ := h.Highlight(lines, "bash", "")
- c.Assert(result, qt.Contains, "<span class=\"lnt\" id=\"2\">2\n</span>")
+ // From Chroma v0.8.2 this is linkable: https://github.com/alecthomas/chroma/commit/ab61726cdb54d5a98b6efe7ed76af6aa0698ab4a
+ c.Assert(result, qt.Contains, "<span class=\"lnt\" id=\"2\"><a style=\"outline: none; text-decoration:none; color:inherit\" href=\"#2\">2</a>\n</span>")
result, _ = h.Highlight(lines, "bash", "lineanchors=test")
- c.Assert(result, qt.Contains, "<span class=\"lnt\" id=\"test-2\">2\n</span>")
result, _ = h.Highlight(lines, "bash", "anchorlinenos=false,hl_lines=2")
c.Assert(result, qt.Not(qt.Contains), "id=\"2\"")
})