Add noclasses variable to pygments

This commit is contained in:
Eliot Whalan 2016-06-23 20:47:45 +10:00
parent b692b2fba8
commit e49ddf6cef
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
func highlight(s string, lang string) (string, error) { 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 { if err != nil {
return "", err return "", err
} }