Move markdown.Mark to main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5e0a11f6f4
commit
89e31ed338
|
@ -1,4 +1,4 @@
|
|||
package markdown
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/yuin/goldmark"
|
|
@ -6,8 +6,6 @@ import (
|
|||
"github.com/yuin/goldmark"
|
||||
"github.com/yuin/goldmark/extension"
|
||||
"github.com/yuin/goldmark/renderer/html"
|
||||
|
||||
"p83.nl/go/wiki/markdown"
|
||||
)
|
||||
|
||||
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
|
||||
if err := md.Convert([]byte(pageText), &buf); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user