Closed ObjectBoxPC closed 2 years ago
Test program to reproduce the issue:
package main
import (
"bytes"
"fmt"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension"
)
func main() {
var outputBuffer bytes.Buffer
input := []byte("![Nice day, isn't it?](https://example.com/image.jpg)")
parser := goldmark.New(
goldmark.WithExtensions(extension.Typographer),
)
parser.Convert(input, &outputBuffer)
output := string(outputBuffer.Bytes())
fmt.Println(output)
}