Add noclasses variable to pygments
This commit is contained in:
parent
30620115b8
commit
872fdf55dc
2
main.go
2
main.go
|
@ -194,7 +194,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
func highlight(s string, lang string) (string, error) {
|
||||
|
||||
highlight, err := pygments.Highlight(html.UnescapeString(s), html.EscapeString(lang), "html", "style=autumn,linenos=True, lineanchors=True,anchorlinenos=True,", "utf-8")
|
||||
highlight, err := pygments.Highlight(html.UnescapeString(s), html.EscapeString(lang), "html", "style=autumn,linenos=True, lineanchors=True,anchorlinenos=True,noclasses=True,", "utf-8")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue