summaryrefslogtreecommitdiffstats
path: root/markup/highlight/highlight.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/highlight/highlight.go')
-rw-r--r--markup/highlight/highlight.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/markup/highlight/highlight.go b/markup/highlight/highlight.go
index 892cb72ee..8e7f6ee30 100644
--- a/markup/highlight/highlight.go
+++ b/markup/highlight/highlight.go
@@ -58,8 +58,8 @@ func New(cfg Config) Highlighter {
}
type Highlighter interface {
- Highlight(code, lang string, opts interface{}) (string, error)
- HighlightCodeBlock(ctx hooks.CodeblockContext, opts interface{}) (HightlightResult, error)
+ Highlight(code, lang string, opts any) (string, error)
+ HighlightCodeBlock(ctx hooks.CodeblockContext, opts any) (HightlightResult, error)
hooks.CodeBlockRenderer
hooks.IsDefaultCodeBlockRendererProvider
}
@@ -68,7 +68,7 @@ type chromaHighlighter struct {
cfg Config
}
-func (h chromaHighlighter) Highlight(code, lang string, opts interface{}) (string, error) {
+func (h chromaHighlighter) Highlight(code, lang string, opts any) (string, error) {
cfg := h.cfg
if err := applyOptions(opts, &cfg); err != nil {
return "", err
@@ -82,7 +82,7 @@ func (h chromaHighlighter) Highlight(code, lang string, opts interface{}) (strin
return b.String(), nil
}
-func (h chromaHighlighter) HighlightCodeBlock(ctx hooks.CodeblockContext, opts interface{}) (HightlightResult, error) {
+func (h chromaHighlighter) HighlightCodeBlock(ctx hooks.CodeblockContext, opts any) (HightlightResult, error) {
cfg := h.cfg
var b strings.Builder