Browse Source

Move markdown.Mark to main

master
Peter Stuifzand 1 year ago
parent
commit
89e31ed338
  1. 2
      mark.go
  2. 4
      markdown.go

2
markdown/mark.go → mark.go

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

4
markdown.go

@ -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…
Cancel
Save