149 Commits

Author SHA1 Message Date
Christopher Jeffrey
3175953d0c add potential strong/em behavior, dont check cap[1] in code rule 2012-01-14 21:08:48 -06:00
Christopher Jeffrey
6fbb30588b a more understanding em/strong behavior 2012-01-14 04:18:24 -06:00
Christopher Jeffrey
8bc19d831d wrap naked inline html elements 2012-01-14 03:40:05 -06:00
Christopher Jeffrey
5d83d1e375 check for href property on links 2012-01-14 03:33:28 -06:00
Christopher Jeffrey
714080ef9e move some tests around, whitespace 2012-01-14 03:27:06 -06:00
Christopher Jeffrey
5f7edf47ed Prepare ship for ludicrous speed.
Make sure to eat extra newlines at the end of certain block rules.
This avoids an extra iteration for `space` tokens.
Marked is now roughly 97% or 98% the speed of Discount.
2012-01-13 05:29:20 -06:00
Christopher Jeffrey
3296d10f18 handle unescaped angle brackets in attribute. closes #12. 2012-01-11 02:01:16 -06:00
Christopher Jeffrey
bb382e3425 clean up list rule 2012-01-10 14:35:58 -06:00
Christopher Jeffrey
0e21e429e7 more compliant blockquote rule 2012-01-10 14:12:28 -06:00
Christopher Jeffrey
c201cb9720 make > escapable. closes #13. 2012-01-09 11:58:03 -06:00
Christopher Jeffrey
62b278ac67 allow differing bullets in lists. closes #16. 2012-01-09 08:57:50 -06:00
Christopher Jeffrey
f42020b896 allow naked sqaure brackets inside link text. closes #20. 2012-01-09 08:57:25 -06:00
Christopher Jeffrey
6a0678dd09 better nested em/strong. closes #15. 2012-01-09 08:56:56 -06:00
Christopher Jeffrey
8905bcf222 more compliant lazy blockquotes. closes #19. 2012-01-09 08:56:35 -06:00
Christopher Jeffrey
ccd0d4bc10 allow lazy blockquotes 2012-01-09 08:56:35 -06:00
Christopher Jeffrey
65559c7ce9 allow nested <code>. closes #18. 2012-01-09 08:56:22 -06:00
Christopher Jeffrey
679848d4ad allow parens around link reference definitions. closes #17. 2012-01-09 08:55:19 -06:00
Christopher Jeffrey
3cbd8e7a0f make references case insensitive. closes #11. 2012-01-09 06:59:16 -06:00
Christopher Jeffrey
be5fa849f7 ignore links without urls. closes #14. 2012-01-09 06:57:57 -06:00
Christopher Jeffrey
02a125ba0f potential changes 2012-01-06 16:44:48 -06:00
Christopher Jeffrey
6387415fdf organize long regexes better 2012-01-06 14:44:39 -06:00
Christopher Jeffrey
c216a1ee7e add paragraph test, refactor, change comments 2012-01-06 01:07:45 -06:00
Christopher Jeffrey
0ccf2d7c82 version, comment 2012-01-04 01:59:00 -06:00
Christopher Jeffrey
60de96800e remove toplevel html block check, change language class 2012-01-04 01:43:40 -06:00
Christopher Jeffrey
e207549e9d remove old inline rules, comments, whitespace 2012-01-03 23:10:50 -06:00
Christopher Jeffrey
8fac45b984 add language class, obscure conformance things for top-level paragraphs 2012-01-03 21:43:38 -06:00
Christopher Jeffrey
332072ffed pass toplevel state to blockquotes, get rid of extra paragraph rules 2012-01-03 15:29:28 -06:00
Christopher Jeffrey
73113644cb add paragraph token, fix paragraph rule 2012-01-03 14:16:31 -06:00
Christopher Jeffrey
75bf7ec7ed remove scratch paper 2012-01-03 13:58:22 -06:00
Christopher Jeffrey
6c7d9f1f54 robust paragraph rule, scratch paper, remove comments 2012-01-03 13:56:58 -06:00
Christopher Jeffrey
cab5ccc1f0 update readme, switch text and paragraph rule, comments 2012-01-03 11:13:36 -06:00
Christopher Jeffrey
5d4fed5c7a ridiculous optimization 2012-01-03 03:36:03 -06:00
Christopher Jeffrey
10e58d5b14 update readme and license 2012-01-03 00:44:51 -06:00
Christopher Jeffrey
298a437d9b fix for top-level lists, add tests, comments 2012-01-03 00:18:49 -06:00
Christopher Jeffrey
b6f4397781 make list item regex consistent, whitespace 2012-01-03 00:09:45 -06:00
Christopher Jeffrey
c94db866bf gfm autolinks and em underscores. more compliant strong and em. 2012-01-02 23:59:13 -06:00
Christopher Jeffrey
a6a3239df8 add gfm code blocks 2012-01-02 04:10:23 -06:00
Christopher Jeffrey
f749958500 output newlines, closes #10 2011-12-30 19:30:32 -06:00
Christopher Jeffrey
d094c548ac String.prototype.type = 'text' scares me 2011-12-17 16:42:05 -06:00
Christopher Jeffrey
02a6a99121 refactor, move code block line feed check to lexer 2011-12-06 09:52:44 -06:00
Christopher Jeffrey
c8f26acd12 improve bin/marked, slice off trailing line feeds from code 2011-12-04 21:47:31 -06:00
Christopher Jeffrey
b702e91a10 dont double escape certain entities/character references, fix encoding test 2011-11-30 07:31:25 -06:00
Christopher Jeffrey
9ab262b2cd compliance with jade and version 2011-11-26 22:15:18 -06:00
Vladimir Dronnikov
5d7522f902 don't allow [foo] (bar) to be treated as link 2011-11-26 10:22:02 +04:00
Christopher Jeffrey
e482c752ad whitespace, comments 2011-10-22 23:39:04 -05:00
Christopher Jeffrey
9ff55ae9d7 rename block rule to code 2011-10-22 08:08:42 -05:00
Christopher Jeffrey
21d0acf145 use for loop instead of each function 2011-10-22 07:49:11 -05:00
Christopher Jeffrey
d626616de4 trivial nonsense 2011-10-22 07:40:36 -05:00
Christopher Jeffrey
922a556ef0 unroll loops for performance 2011-10-22 06:09:28 -05:00
Christopher Jeffrey
18ed8cc2d4 trivial nonsense 2011-10-08 09:23:01 -05:00