-5
appview/pages/markdown.go
-5
appview/pages/markdown.go
···
6
6
"github.com/yuin/goldmark"
7
7
"github.com/yuin/goldmark/extension"
8
8
"github.com/yuin/goldmark/parser"
9
-
"github.com/yuin/goldmark/renderer/html"
10
9
)
11
10
12
11
func renderMarkdown(source string) string {
···
14
13
goldmark.WithExtensions(extension.GFM),
15
14
goldmark.WithParserOptions(
16
15
parser.WithAutoHeadingID(),
17
-
),
18
-
goldmark.WithRendererOptions(
19
-
html.WithHardWraps(),
20
-
html.WithXHTML(),
21
16
),
22
17
)
23
18
var buf bytes.Buffer