markdown/doc.go
2012-05-04 16:20:29 +02:00

25 lines
374 B
Go

/*
A translation of peg-markdown [1] into Go.
Usage example:
package main
import (
"github.com/knieriem/markdown"
"os"
"bufio"
)
func main() {
p := markdown.NewParser(&markdown.Extensions{Smart: true})
w := bufio.NewWriter(os.Stdout)
p.Markdown(os.Stdin, markdown.ToHTML(w))
w.Flush()
}
[1]: https://github.com/jgm/peg-markdown/
*/
package markdown