Documentation ¶
Overview ¶
Package replacer is a extension for the goldmark (http://github.com/yuin/goldmark).
This extension adds support for authomaticaly replacing text in markdowns.
Example ¶
package main import ( "log" "os" replacer "github.com/mdigger/goldmark-text-replacer" "github.com/yuin/goldmark" ) func main() { md := goldmark.New( replacer.Options( "(c)", "©", "(r)", "®", "...", "…", "(tm)", "™", "<-", "←", "->", "→", "<->", "↔", "--", "—", ), ) var source = []byte("(c)Dmitry Sedykh") err := md.Convert(source, os.Stdout) if err != nil { log.Fatal(err) } }
Output: <p>©Dmitry Sedykh</p>
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.