Commit Graph

89 Commits

Author SHA1 Message Date
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
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
318858ce0a output.go: move some code into methods 2012-04-26 21:35:18 +02:00
Michael Teichgräber
4d8d5a00f4 output: str: fix rand.Intn call 2012-04-26 21:23:45 +02:00
Michael Teichgräber
0b7aff8bd1 output.go: reduce verbosity of `obfuscate' feature 2012-04-26 20:39:43 +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
99ba8c18fe README: update to reflect changes for Go 1, cleanup 2012-04-21 01:44:22 +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
0f439963e6 add tags go.r58 and go.r59 2011-12-03 00:47:57 +01:00
Michael Teichgräber
0091d71ca8 Added tag go.r60 for changeset 8f1973a5e086 2011-12-02 22:33:02 +01:00
Michael Teichgräber
d265ac0f21 sync with current Go (gofix go1rename, error) 2011-11-18 18:25:39 +01:00
knieriem
18aa4e492b Merge pull request #3 from holdensmagicalunicorn/master
Spelling fix
2011-08-30 06:55:41 -07:00
holdensmagicalunicorn
5c92526363 Spelling correction in README 2011-08-28 13:20:44 -07:00
Michael Teichgräber
7ce3bfa5ad parser.leg.go: update 2011-07-04 18:48:17 +02:00
Michael Teichgräber
261d8c904a misc/bmprepare.rc: fix 2011-07-04 18:48:03 +02:00
Michael Teichgräber
07c1f008bc misc: add benchmark scripts 2011-07-04 18:25:32 +02:00
Michael Teichgräber
a1392cd0e1 update README 2011-07-04 18:13:48 +02:00
Michael Teichgräber
e93d31a776 misc/devel.mk: add target pprof 2011-07-01 00:40:45 +02:00