- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 276
 
Open
Labels
pinnedissue should not be closed by stalebotissue should not be closed by stalebot
Description
What version of goldmark are you using? : 1.5.2
What version of Go are you using? : 1.19.3
What operating system and processor architecture are you using? : linux/amd64
code
package main
import (
	"bytes"
	"fmt"
	"github.com/yuin/goldmark"
	"github.com/yuin/goldmark/extension"
)
func main() {
	md := goldmark.New(
		goldmark.WithExtensions(
			extension.Typographer,
			extension.Linkify,
		),
	)
	input := `"https://example.org/"`
	var buf bytes.Buffer
	if err := md.Convert([]byte(input), &buf); err != nil {
		panic(err)
	}
	fmt.Println(buf.String())
}Expected output:
<p>“<a href="https://example.org/">https://example.org/</a>”</p>Actual output:
<p>“<a href="https://example.org/%22">https://example.org/"</a></p>The behavior is triggered by the trailing slash in the URL.
Metadata
Metadata
Assignees
Labels
pinnedissue should not be closed by stalebotissue should not be closed by stalebot