From 872fdf55dc63f5eb7b8c06f1b49b67a32a818cd3 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 }