Skip to content

Instantly share code, notes, and snippets.

@kjk
Last active October 30, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjk/c22857d7fcb8805ba9647c48666d5213 to your computer and use it in GitHub Desktop.
Save kjk/c22857d7fcb8805ba9647c48666d5213 to your computer and use it in GitHub Desktop.
test goldmark markdown
package main
import (
"bytes"
"fmt"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension"
)
func main() {
s1 := "https://en.wikipedia.org/wiki/The_Master_(2012_film)"
o1 := goldmark.New(goldmark.WithExtensions(extension.Linkify))
var b2 bytes.Buffer
o1.Convert([]byte(s1), &b2)
s2 := b2.String()
fmt.Print(s2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment