Michael Teichgräber
f721084df0
new API: p := NewParser(&opts), p.Markdown(r, f) replaces d := Parse(r, opts), d.WriteHtml(w)
...
The new api allows to create a parser instance that can be
reused between calls to Markdown. Also, an interface `Formatter'
replaces the tight coupling between former Doc type and HTML
generation.
2012-04-28 22:57:55 +02:00
Michael Teichgräber
91a38d3048
rename Extensions → Options
2012-04-21 22:37:54 +02:00
Michael Teichgräber
fc11ba4282
Parse: take an io.Reader argument instead of a string
2012-04-21 01:19:46 +02:00
Michael Teichgräber
ea9008f19c
cmd: move profiling stuff into pprof.go
2012-04-20 13:49:21 +02:00
Michael Teichgräber
178d014fcf
go fmt
2012-04-20 13:36:59 +02:00
Michael Teichgräber
ac729cbd2f
use the `go' tool where possible
...
--HG--
rename : cmd/main.go => cmd/markdown/main.go
2012-04-20 13:35:31 +02:00
Michael Teichgräber
ec93c2ee28
cmd/main.go: add flag -cpuprofile to enable runtime/pprof profiling
2011-06-29 20:01:24 +02:00
Michael Teichgräber
f91ece3c6b
adjust Makefiles for github.com
2010-12-01 19:40:56 +01:00
Michael Teichgräber
c5747337a9
replace extension flags by Extension, a struct of boolean values
2010-11-24 19:56:25 +01:00
Michael Teichgräber
7a083c5dae
initial import
2010-11-21 23:04:39 +01:00