Move markdown.Mark to main
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-07-01 22:51:16 +02:00
parent 5e0a11f6f4
commit 89e31ed338
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package markdown package main
import ( import (
"github.com/yuin/goldmark" "github.com/yuin/goldmark"

View File

@ -6,8 +6,6 @@ import (
"github.com/yuin/goldmark" "github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/renderer/html" "github.com/yuin/goldmark/renderer/html"
"p83.nl/go/wiki/markdown"
) )
func renderMarkdown2(pageText string) string { func renderMarkdown2(pageText string) string {
@ -19,7 +17,7 @@ func renderMarkdown2(pageText string) string {
), ),
) )
markdown.Mark.Extend(md) Mark.Extend(md)
var buf bytes.Buffer var buf bytes.Buffer
if err := md.Convert([]byte(pageText), &buf); err != nil { if err := md.Convert([]byte(pageText), &buf); err != nil {