Closed ghost closed 4 years ago
Here is a workaround:
package main
import (
"bytes"
"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()
print(s2)
}
Enclose the link with <
and >
Using this file:
I get this result:
Note that the final parenthesis is not included as part of the link. Other processors work as expected. For example GitHub parser:
https://en.wikipedia.org/wiki/The_Master_(2012_film)