diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go index 5b16fa8e84e5..70f47e289eac 100644 --- a/modules/markup/markdown/goldmark.go +++ b/modules/markup/markdown/goldmark.go @@ -85,7 +85,7 @@ func (g *GiteaASTTransformer) Transform(node *ast.Document, reader text.Reader, case *ast.List: if v.HasChildren() && v.FirstChild().HasChildren() && v.FirstChild().FirstChild().HasChildren() { if _, ok := v.FirstChild().FirstChild().FirstChild().(*east.TaskCheckBox); ok { - v.SetAttributeString("class", "task-list") + v.SetAttributeString("class", []byte("task-list")) } } }