highlight: Expose node params so we can pass options to Chroma
This commit is contained in:
parent
3c938e7e43
commit
9b56fc914c
3 changed files with 6 additions and 6 deletions
2
main.go
2
main.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue