Michael Teichgräber
3da2db8c43
update parser interface
2013-06-12 14:17:16 +02:00
Michael Teichgräber
a032b690e8
Sp? is redundant… [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/b220285
2013-06-11 02:53:42 +02:00
Michael Teichgräber
feacd19307
Rewrote Strike parser to avoid exponential blowup. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/a035b71
2013-06-11 02:51:31 +02:00
Michael Teichgräber
53573d327b
disable strike-through extension by default [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/9556c54
2013-06-11 02:00:44 +02:00
Michael Teichgräber
13604f76a7
New extension: strike through with two tildes [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/7cc5b73
2013-06-11 01:51:23 +02:00
Michael Teichgräber
7e6639da75
Treat <head> as block-level HTML tag. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/2a009eb
2013-03-05 20:20:39 +01:00
Michael Teichgräber
7ce368c8ef
Efficiency improvement (!Whitespace instead of &Nonspacechar). [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/c95552a
2013-01-23 22:41:13 +01:00
Michael Teichgräber
3d0dcc5c4b
Removed unused disjunct in SourceContents. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/2a19a38
2013-01-23 22:36:47 +01:00
Michael Teichgräber
e5cc35f577
Rewrote Emph/Strong parsers to avoid exponential blowup. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/39dfc1c
2013-01-23 22:35:43 +01:00
Michael Teichgräber
6bfe7a1a46
Fixed Endline to allow 1 and 2-character setext header lines. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/482a0ba
2013-01-23 22:30:47 +01:00
Michael Teichgräber
fe64993b93
Removed unused parser. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/400b390
2013-01-23 22:28:48 +01:00
Michael Teichgräber
326da7a836
Require only one character for setext header lines. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/ce835e5
2013-01-23 22:28:03 +01:00
Michael Teichgräber
54cb06d41a
Improved strong/emph parsers to avoid exponential blowup. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/c59e682
2013-01-23 22:24:50 +01:00
Michael Teichgräber
f42048b731
Disallow blank space between [label] and ( in inline link. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/1a629de
2013-01-23 22:09:53 +01:00
Michael Teichgräber
4626c2b169
gofmt
2013-01-23 21:51:00 +01:00
Michael Teichgräber
2b2e21d8c5
rename: Options -> Extensions
2012-05-04 16:20:29 +02:00
Michael Teichgräber
982e5856bf
Same as previous patch but for the underlined variant. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/2a5daec
2012-04-30 10:16:52 +02:00
Michael Teichgräber
5bebe88174
Fixed exponential problem with Emph/Strong. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/c258a9a
2012-04-30 10:14:27 +02:00
Michael Teichgräber
ba2d82f616
Simplified SkipBlock. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/85439dd
2012-04-30 10:13:12 +02:00
Michael Teichgräber
ad8afc4ab1
Improved SkipBlock to allow references after headers. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/9e05fec
2012-04-30 10:12:01 +02:00
Michael Teichgräber
5f0135f259
Improved AutoLinkEmail (Fletcher Penney). [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/ca4df46
2012-04-30 10:10:32 +02:00
Michael Teichgräber
95b1be5f7e
Added ' and " to SpecialChars. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/5e22125
2012-04-30 10:07:49 +02:00
Michael Teichgräber
a653491ff5
Parse <script>...</script> as literal even in inline text. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/530acc5
2012-04-30 02:16:21 +02:00
Michael Teichgräber
d23584ac81
Don't allow <script> blocks to be nested. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/eb6c29e
2012-04-30 02:14:03 +02:00
Michael Teichgräber
caef05e3ed
Require non-space after single quote start. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/8fa228e
2012-04-30 02:10:03 +02:00
Michael Teichgräber
19cb7e96a9
Added () to SpecialChars. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/2b094dc
2012-04-30 01:29:19 +02:00
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
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
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
42e21972e8
parser.leg: fix Definition title
2012-04-24 00:53:54 +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
0cbfa7b920
parser.leg: print_tree: write to an io.Writer
2012-04-21 23:08:33 +02:00
Michael Teichgräber
4c6a2bc6b5
parser.leg: move concat_str_list implementation into mk_str_from_list
2012-04-21 23:06:04 +02:00
Michael Teichgräber
ef0f35c8b2
parser.leg: mk_link, mk_list: use named return values
2012-04-21 22:51:26 +02:00
Michael Teichgräber
91a38d3048
rename Extensions → Options
2012-04-21 22:37:54 +02:00
Michael Teichgräber
d5e7262b62
leg compiler: use switch optimization
2011-06-29 20:04:44 +02:00
Michael Teichgräber
05ed86d61e
Added missing HtmlBlockOl to HtmlBlockInTags. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/09238d8
2011-02-21 09:11:51 +01:00
Michael Teichgräber
33db340b24
Tentative change to tight/loose lists. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/c480d05
2011-02-21 03:19:57 +01:00
Michael Teichgräber
5fa71aa19e
Fixed exponential slowdown for some HTML. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/90cb74a
2011-02-21 03:16:05 +01:00
Michael Teichgräber
43b75cb12e
Fixed bug in list continuations. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/bdd9c05
2011-02-21 02:58:53 +01:00
Michael Teichgräber
33ef9ad6bc
Atx headers: Don't require space after ###. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/6515556
2011-02-21 02:55:06 +01:00
Michael Teichgräber
9a0423b225
Allow Atx header like this: '# header#'. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/7512333
2011-02-21 02:53:09 +01:00
Michael Teichgräber
47a94780b8
Fixed Alphanumeric. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/5b0bd3d
2011-02-21 02:48:43 +01:00
Michael Teichgräber
d8bbdbe0ff
Fixed \178 -> \200. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/eb286be
2011-02-21 02:47:24 +01:00
Michael Teichgräber
b9766af7aa
Fixed bug in ![nonexistent]. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/cc1be41
2011-02-21 02:46:27 +01:00