summaryrefslogtreecommitdiffstats
path: root/markup
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-26 12:17:10 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-06-14 14:08:40 +0200
commit35fa192838ecfa244335fca957e55d3956a48665 (patch)
tree7a1dac873c8c219d0ca933aa2a36891d92764302 /markup
parent09ac73338198ceb143c1e5edc5859ab735cd80bb (diff)
deps: Udpate to github.com/alecthomas/chroma/v2
Fixes #9932 Fixes #9931
Diffstat (limited to 'markup')
-rw-r--r--markup/goldmark/codeblocks/render.go2
-rw-r--r--markup/highlight/config.go2
-rw-r--r--markup/highlight/highlight.go8
3 files changed, 6 insertions, 6 deletions
diff --git a/markup/goldmark/codeblocks/render.go b/markup/goldmark/codeblocks/render.go
index d56667ceb..e245688e7 100644
--- a/markup/goldmark/codeblocks/render.go
+++ b/markup/goldmark/codeblocks/render.go
@@ -18,7 +18,7 @@ import (
"fmt"
"sync"
- "github.com/alecthomas/chroma/lexers"
+ "github.com/alecthomas/chroma/v2/lexers"
"github.com/gohugoio/hugo/common/herrors"
htext "github.com/gohugoio/hugo/common/text"
"github.com/gohugoio/hugo/markup/converter/hooks"
diff --git a/markup/highlight/config.go b/markup/highlight/config.go
index 08c1bca1a..80991f21b 100644
--- a/markup/highlight/config.go
+++ b/markup/highlight/config.go
@@ -19,7 +19,7 @@ import (
"strconv"
"strings"
- "github.com/alecthomas/chroma/formatters/html"
+ "github.com/alecthomas/chroma/v2/formatters/html"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/config"
diff --git a/markup/highlight/highlight.go b/markup/highlight/highlight.go
index 8e7f6ee30..7e5704132 100644
--- a/markup/highlight/highlight.go
+++ b/markup/highlight/highlight.go
@@ -20,10 +20,10 @@ import (
"io"
"strings"
- "github.com/alecthomas/chroma"
- "github.com/alecthomas/chroma/formatters/html"
- "github.com/alecthomas/chroma/lexers"
- "github.com/alecthomas/chroma/styles"
+ "github.com/alecthomas/chroma/v2"
+ "github.com/alecthomas/chroma/v2/formatters/html"
+ "github.com/alecthomas/chroma/v2/lexers"
+ "github.com/alecthomas/chroma/v2/styles"
"github.com/gohugoio/hugo/common/hugio"
"github.com/gohugoio/hugo/common/text"
"github.com/gohugoio/hugo/identity"