Commit Graph

6 Commits

Author SHA1 Message Date
Michael Teichgräber
2b2e21d8c5 rename: Options -> Extensions 2012-05-04 16:20:29 +02:00
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
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