Skip to content

mdigger/goldmark-text-replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goldmark-text-replacer

GoDoc

Goldmark text replacer extension.

md := goldmark.New(
    replacer.Options(
        "(c)", "©",
        "(r)", "®",
        "...", "…",
        "(tm)", "™",
        "<-", "&larr;",
        "->", "&rarr;",
        "<->", "&harr;",
    ),
)
var source = []byte("(c)Dmitry Sedykh")
err := md.Convert(source, os.Stdout)
if err != nil {
    log.Fatal(err)
}

Releases

No releases published

Languages