highlight: Expose node params so we can pass options to Chroma

This commit is contained in:
Kisaragi Hiu 2022-07-18 03:51:04 +09:00
parent 3c938e7e43
commit 9b56fc914c
No known key found for this signature in database
GPG key ID: 40ECBEAEA8775FC2
3 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ func render(args []string) {
}
}
func highlightCodeBlock(source, lang string, inline bool) string {
func highlightCodeBlock(source, lang string, inline bool, params map[string]string) string {
var w strings.Builder
l := lexers.Get(lang)
if l == nil {