Michael Teichgräber
4fe196d324
update parser.leg.go
2013-01-23 22:58:09 +01:00
Michael Teichgräber
f3d02c6662
Only obfuscate ascii characters. [jgm/peg-markdown]
...
See https://github.com/jgm/peg-markdown/commit/9ff58c2
2013-01-23 22:46:38 +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
5bccaab30c
markdown.go: Markdown: remove some obscure protection, which is now provided by parseRule
2013-01-08 21:48:17 +01:00
Michael Teichgräber
1be80a2179
markdown:parseRule: fix extra `if', don't trim '\t'
2013-01-08 21:28:57 +01:00
knieriem
75aa87b55f
Merge pull request #7 from wendal/master
...
ignore small parse error
2013-01-08 11:07:45 -08:00
Michael Teichgräber
bb8d7d8462
test: add a test case triggering an internal bug
2013-01-08 21:04:47 +01:00
Wendal Chen
33ddb58e17
ignore small parse error
...
ignore parse error like
unnecessary blankspace tab \r or \n
2013-01-05 13:38:16 +08:00
Michael Teichgräber
46e3fb8ecd
support groff-mm output format
2012-09-01 00:29:18 +02:00
Michael Teichgräber
ab2227c41c
markdown.go: document Formatter
2012-09-01 00:25:43 +02:00
Michael Teichgräber
38ff54e038
output.go: make the Formatter reusable
2012-09-01 00:25:33 +02:00
Michael Teichgräber
71df3d7aa2
output.go: move padding stuff to a new type baseWriter
2012-09-01 00:14:27 +02:00
Michael Teichgräber
437afafa74
output.go: slightly rearrange padding, add br() and sp() methods
2012-08-09 20:36:43 +02:00
Michael Teichgräber
e0bd6b6736
add markdown_test.go
2012-07-20 12:51:57 +02:00
Michael Teichgräber
e53a34621e
markdown.go: Parser.Markdown: reset the buffer at beginning (needs to be resolved later)
2012-07-20 12:33:52 +02:00
Michael Teichgräber
fa16c1c9ea
parser.leg.go: fix ResetBuffer
2012-07-20 12:32:22 +02:00
Michael Teichgräber
6402ae5405
parseRule: treat the occurrence of a parse error as a valid condition
...
The previous implementation was too strict. A parse error can
occur if the input is a single line consisting of spaces and tabs only.
2012-05-30 01:29:37 +02:00
Michael Teichgräber
ee7958ce49
misc/c2go.sed: update
2012-05-04 16:36:55 +02:00
Michael Teichgräber
c6b9d3c90d
parser.leg.go: update
2012-05-04 16:36:37 +02:00
Michael Teichgräber
61095f6cc4
README.md: update
2012-05-04 16:36:04 +02:00
Michael Teichgräber
2b2e21d8c5
rename: Options -> Extensions
2012-05-04 16:20:29 +02:00
Michael Teichgräber
7799c9c82c
add package tests, comprising tests from the MarkdownTest_1.0.3 suite
2012-05-04 12:42:16 +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
34ea4be8c6
add portid
2012-04-30 01:07:48 +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
4071eb731f
README.markdown -> README.md + update
...
--HG--
rename : README.markdown => README.md
2012-04-30 00:56:41 +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