diff options
Diffstat (limited to '')
-rw-r--r-- | render/chroma.go (renamed from chroma.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chroma.go b/render/chroma.go index 0d904b7..c7d64ec 100644 --- a/chroma.go +++ b/render/chroma.go @@ -1,4 +1,4 @@ -package main +package render import ( "bytes" @@ -9,7 +9,7 @@ import ( chromaStyles "github.com/alecthomas/chroma/v2/styles" ) -func renderHighlightedFile(filename, content string) template.HTML { +func Highlight(filename, content string) template.HTML { lexer := chromaLexers.Match(filename) if lexer == nil { lexer = chromaLexers.Fallback |