From e49ddf6cefd9baf2f29a1a27bdaf5387fda66a1b Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 20:47:45 +1000 Subject: [PATCH] Add noclasses variable to pygments --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d511c7b..4008ee6 100644 --- a/main.go +++ b/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 }