markdown/doc.go
2012-04-21 22:37:54 +02:00

25 lines
346 B
Go

/*
A translation of peg-markdown [1] into Go.
Usage example:
package main
import (
md "github.com/knieriem/markdown"
"os"
"bufio"
)
func main() {
doc := md.Parse(os.Stdin, md.Options{Smart: true})
w := bufio.NewWriter(os.Stdout)
doc.WriteHtml(w)
w.Flush()
}
[1]: https://github.com/jgm/peg-markdown/
*/
package markdown