upgrade to chroma v2
All checks were successful
Build and publish the docker image / build (push) Successful in 55s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-19 22:44:51 +03:00
parent f016463aa4
commit 042b66787c
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -7,9 +7,9 @@ import (
"regexp" "regexp"
"strings" "strings"
html_formatter "github.com/alecthomas/chroma/formatters/html" html_formatter "github.com/alecthomas/chroma/v2/formatters/html"
"github.com/alecthomas/chroma/lexers" "github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/styles" "github.com/alecthomas/chroma/v2/styles"
) )
// highlightSyntaxViaContent uses Chroma to lex code content and apply the appropriate tokenizer engine. // highlightSyntaxViaContent uses Chroma to lex code content and apply the appropriate tokenizer engine.