Don't use chroma for Ascii profiles

This commit is contained in:
Christian Muehlhaeuser
2020-02-28 07:17:43 +01:00
parent 725b8947c6
commit 9474015b79
+1 -1
View File
@@ -63,7 +63,7 @@ func (e *CodeBlockElement) Render(w io.Writer, ctx RenderContext) error {
}
theme := rules.Theme
if rules.Chroma != nil {
if rules.Chroma != nil && ctx.options.ColorProfile > 1 {
theme = "charm"
styles.Register(chroma.MustNewStyle("charm",
chroma.StyleEntries{