This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
hmn/src/parsing/chroma.go

21 lines
388 B
Go

package parsing
import "github.com/alecthomas/chroma/formatters/html"
var HMNChromaOptions = []html.Option{
html.WithClasses(true),
html.WithPreWrapper(nopPreWrapper{}),
}
type nopPreWrapper struct{}
var _ html.PreWrapper = nopPreWrapper{}
func (w nopPreWrapper) Start(code bool, styleAttr string) string {
return ""
}
func (w nopPreWrapper) End(code bool) string {
return ""
}