Michael Teichgräber
01228db44b
Simplified SingleQuoteStart. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/11d6864
2012-04-30 01:24:47 +02:00
Michael Teichgräber
77a926239d
Fixed Str parser so it handles apostrophes inside words. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/4bb5083
2012-04-30 01:22:42 +02:00
Michael Teichgräber
eb8169a8e5
Require newline after Reference. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/fff88fe
2012-04-30 01:14:31 +02:00
Michael Teichgräber
cfb6c5e36b
Changed order of AtxHeading & SetextHeading in Heading. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/a3b97b3
2012-04-30 01:06:43 +02:00
Michael Teichgräber
0a5e33b54d
Fixed bug in setext headers. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/d57e706
2012-04-30 01:04:43 +02:00
Michael Teichgräber
1bbd55c017
cosmetics
2012-04-30 00:58:06 +02:00
Michael Teichgräber
b71976ee5d
add a mechanism that makes sure only an up-to-date parser.leg.go can be used
2012-04-30 00:55:37 +02:00
Michael Teichgräber
cca2b1a3c2
mk_element: turn global allocation into a per-parser, reusable allocation.
...
This reduces memory usage within a single document, because
elements allocated during parsing of one Docblock can be reused
during parsing of the next Docblock.
2012-04-29 23:54:10 +02:00
Michael Teichgräber
4cfb83f5d7
preformat: one \n is not enough. Fix parsing of input containing \r\n line endings.
2012-04-29 23:47:53 +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
2670cccafb
preformat: one appended \n seems enough
2012-04-28 20:56:36 +02:00
Michael Teichgräber
0248d52f7e
sync with peg
...
- Parse now returns an `error'
- leg parser generator writes to stdout now, doesn't
create a file xy.leg.go anymore
- turn on new optimizations
2012-04-24 00:15:47 +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
178d014fcf
go fmt
2012-04-20 13:36:59 +02:00
Michael Teichgräber
f9048559c7
markdown.go: adjust strings.Split call
2011-06-30 20:52:13 +02:00
Michael Teichgräber
7cfd682971
golang: log.Exitf->log.Fatalf
2011-02-18 12:00:25 +01:00
Michael Teichgräber
722e122c88
processRawBlocks: cope with empty lists
2010-11-25 14:33:36 +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
071bf92c4f
use a single yyParser instance only, and reuse initialized parser
2010-11-24 19:36:10 +01:00
Michael Teichgräber
42e0bf557e
processRawBlocks: simplify appending of lists
2010-11-24 18:59:08 +01:00
Michael Teichgräber
4995379a8e
preformat: use bytes.Buffer instead of concatenating strings
2010-11-24 18:54:12 +01:00
Michael Teichgräber
7a083c5dae
initial import
2010-11-21 23:04:39 +01:00