Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 374 Bytes
/*
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