We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6fc25 commit 8fc1a8fCopy full SHA for 8fc1a8f
modules/markup/markdown/markdown.go
@@ -104,7 +104,8 @@ func SpecializedMarkdown() goldmark.Markdown {
104
}
105
106
// include language-x class as part of commonmark spec
107
- _, err = w.WriteString(`<code class="chroma language-` + string(language) + `">`)
+ // the "display" class is used by "js/markup/math.js" to render the code element as a block
108
+ _, err = w.WriteString(`<code class="chroma language-` + string(language) + ` display">`)
109
if err != nil {
110
return
111
0 commit comments