console: remove unsafe rendering from Goldmark

With the recent update, we don't need it anymore.
This commit is contained in:
Vincent Bernat
2022-09-05 23:50:28 +02:00
parent 7c4c0437ab
commit 1d39c1d9ec

View File

@@ -21,7 +21,6 @@ import (
"github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/ast"
"github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/parser" "github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/renderer/html"
"github.com/yuin/goldmark/text" "github.com/yuin/goldmark/text"
"github.com/yuin/goldmark/util" "github.com/yuin/goldmark/util"
) )
@@ -106,9 +105,6 @@ func (c *Component) docsHandlerFunc(gc *gin.Context) {
return return
} }
md := goldmark.New( md := goldmark.New(
goldmark.WithRendererOptions(
html.WithUnsafe(),
),
goldmark.WithExtensions( goldmark.WithExtensions(
extension.Footnote, extension.Footnote,
extension.Typographer, extension.Typographer,