diff options
Diffstat (limited to 'modules/markup/orgmode/orgmode.go')
-rw-r--r-- | modules/markup/orgmode/orgmode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go index 8c9f3b3da7..a78531720d 100644 --- a/modules/markup/orgmode/orgmode.go +++ b/modules/markup/orgmode/orgmode.go @@ -75,7 +75,7 @@ func Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error if lexer == nil { // include language-x class as part of commonmark spec - if _, err := w.WriteString(`<code class="chroma language-` + string(lang) + `">`); err != nil { + if _, err := w.WriteString(`<code class="chroma language-` + lang + `">`); err != nil { return "" } if _, err := w.WriteString(html.EscapeString(source)); err != nil { @@ -83,7 +83,7 @@ func Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error } } else { // include language-x class as part of commonmark spec - if _, err := w.WriteString(`<code class="chroma language-` + string(lang) + `">`); err != nil { + if _, err := w.WriteString(`<code class="chroma language-` + lang + `">`); err != nil { return "" } lexer = chroma.Coalesce(lexer) |