Open zyxkad opened 1 year ago
hI, you can use cutom configuration, goldmark-highlighting is base on https://github.com/alecthomas/chroma, so you can
goldmark.New(
goldmark.WithExtensions(
highlighting.NewHighlighting(
highlighting.WithStyle("base16-snazzy"),
highlighting.WithFormatOptions(
chromahtml.ClassPrefix("highlight-"),
chromahtml.WithClasses(true),
chromahtml.LineNumbersInTable(true),
chromahtml.WithAllClasses(true),
chromahtml.WithLineNumbers(true),
),
),
),
)
This should be in the README, I don't think anyone wants hard-coded colors anymore.
Why should we use
class
, not hard codestyle
:class
can ensure people are using their perfect theme.