Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: go.r60
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.365 kb
/*
A translation of peg-markdown [1] into Go.
Usage example:
import (
md "markdown"
"os"
"io/ioutil"
"bufio"
)
func main() {
b, _ := ioutil.ReadAll(os.Stdin)
doc := md.Parse(string(b), md.Extensions{Smart: true})
w := bufio.NewWriter(os.Stdout)
doc.WriteHtml(w)
w.Flush()
}
[1]: https://github.com/jgm/peg-markdown/
*/
package markdown
Jump to Line
Something went wrong with that request. Please try again.