Skip to content

mdigger/goldmark-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goldmark-images

GoDoc

Goldmark image replacer extension.

imageURL := func (src string) string {
	return "test-" + src
}

source := []byte(`![alt](image.png "title")`)
gm := goldmark.New(
    images.NewReplacer(imageURL),
    goldmark.WithRendererOptions(html.WithXHTML()),
)
err = gm.Convert(source, os.Stdout)
<p><img src="test-image.png" alt="alt" title="title" /></p>

Releases

No releases published

Packages

No packages published

Languages