Guy Bedford
00cb0f1934
Update exports for server amd compatibility
2013-01-10 16:20:30 +02:00
Christopher Jeffrey
102659f8a2
fix small problem in def rule. see #101 .
2013-01-10 06:51:13 -06:00
Christopher Jeffrey
e278e06377
smarter lists. fixes #55 .
...
Example:
$ marked --smart-lists
- hi
- hi
1. hi
2. hi
^D
<ul>
<li>hi</li>
<li>hi</li>
</ul>
<ol>
<li>hi</li>
<li>hi</li>
</ol>
2013-01-10 03:12:09 -06:00
Christopher Jeffrey
48c6a43fb9
fix link defs after blocks. nearly fixes #77 .
2013-01-09 19:51:24 -06:00
Christopher Jeffrey
7d89a7167e
fix HRs in list items + code. fixes #91 .
2013-01-09 19:49:15 -06:00
Christopher Jeffrey
5a1c7a5871
move vertical bar escape to gfm only.
2013-01-09 19:17:58 -06:00
Christopher Jeffrey
decd5893b0
ignore angle brackets in ref links. fixes #101 .
2013-01-09 18:55:33 -06:00
Christopher Jeffrey
4cc2978385
this is faster than just cap[1] for some reason.
2013-01-09 18:46:50 -06:00
Christopher Jeffrey
f638f53051
better inline code trimming. avoid so many newlines after paragraphs. closes #103 .
2013-01-09 18:14:56 -06:00
Christopher Jeffrey
cfe4d63fe7
fix options merge.
2013-01-09 17:56:54 -06:00
Christopher Jeffrey
83328261a1
add configurable -lang prefix. closes #67 and #54 .
2013-01-09 17:02:57 -06:00
Christopher Jeffrey
48e766a90e
Trim inline code. Fixes #69 .
...
The inline code regex itself could also simply have \s* prepended
and appended to outside the main capture. However, this results
in less accurate behavior.
2013-01-09 14:12:23 -06:00
Christopher Jeffrey
995cb0ca00
fix options merge.
2013-01-09 13:43:36 -06:00
Tyler Freeman
229c3a1163
fixed issue 79: URLs followed by HTML tag tries to include tag as part of the link
...
Conflicts:
lib/marked.js
2013-01-09 13:43:23 -06:00
Christopher Jeffrey
e6827b7567
merge options. fixes #87 .
2013-01-09 01:20:00 -06:00
Christopher Jeffrey
a1080df787
a more accurate del rule.
2013-01-06 14:55:25 -06:00
Christopher Jeffrey
ada939da3d
comments
2013-01-05 06:03:46 -06:00
Christopher Jeffrey
3e827b9f4c
comment.
2013-01-04 23:19:36 -06:00
Christopher Jeffrey
75071c8de1
explicitly send a false top state.
2013-01-04 23:17:32 -06:00
Christopher Jeffrey
5861dfe59c
comments
2013-01-04 22:54:31 -06:00
Christopher Jeffrey
b0b6578535
rename rules.
2013-01-04 22:38:06 -06:00
Christopher Jeffrey
d6f2558f9d
avoid code duplication with regexes.
2013-01-04 22:34:53 -06:00
Christopher Jeffrey
dc14096aee
GFM tables do not break paragraphs. see #74 .
2013-01-04 16:11:04 -06:00
Christopher Jeffrey
27e356ce17
clean up table regexes.
2013-01-04 15:54:09 -06:00
Christopher Jeffrey
caed1cbe6c
refactor highlighting.
2013-01-04 15:52:02 -06:00
Christopher Jeffrey
16212b780e
fix table parsing. closes #104 .
2013-01-04 14:14:02 -06:00
Christopher Jeffrey
0a486ce9c1
minor. remove pointless assignment.
2013-01-03 21:20:50 -06:00
Christopher Jeffrey
9f45e252b8
clean up table parsing.
2013-01-03 09:28:41 -06:00
Christopher Jeffrey
094515c53d
semicolon.
2013-01-03 08:48:02 -06:00
Christopher Jeffrey
8cbc4de819
misc.
2013-01-03 07:59:05 -06:00
Christopher Jeffrey
2cd27a6720
add gfm strikethrough. fixes #53 .
2013-01-03 07:44:02 -06:00
Christopher Jeffrey
8873d6604f
Merge remote-tracking branch 'ForbesLindesay/execption-when-no-links'
...
Conflicts:
lib/marked.js
2013-01-03 06:48:10 -06:00
Christopher Jeffrey
f9f0668383
comments. style.
2013-01-03 06:32:39 -06:00
Brian Cavalier
aa5556992c
Add AMD support when define and define.amd detected
2013-01-03 06:31:35 -06:00
Christopher Jeffrey
47304d29b4
optimize for disabled tables.
2013-01-03 06:23:01 -06:00
Christopher Jeffrey
42d8b2422f
remove u00a0. fixes #52 and possibly #81 .
2013-01-03 03:44:37 -06:00
Christopher Jeffrey
8a7ecafed2
move table rules to correct positions.
2013-01-03 03:22:48 -06:00
Christopher Jeffrey
5806c20d65
better option handling.
2013-01-03 03:02:05 -06:00
Christopher Jeffrey
7aa7934c90
add gfm line breaks.
2013-01-03 02:21:44 -06:00
Christopher Jeffrey
262f8797ff
Merge branch 'gfm_tables_again' into just_proto_table
...
Conflicts:
lib/marked.js
2013-01-03 01:49:08 -06:00
Christopher Jeffrey
969939c9f7
move tag string.
2013-01-03 01:42:48 -06:00
Christopher Jeffrey
66dcce2737
use InlineLexer constructor.
2013-01-03 01:40:10 -06:00
Christopher Jeffrey
079cbe8b6a
small refactor.
2013-01-03 01:13:40 -06:00
Christopher Jeffrey
aef3a954da
refactor options.
2013-01-03 00:45:07 -06:00
Christopher Jeffrey
87a72cda33
major refactor.
...
Conflicts:
lib/marked.js
2013-01-03 00:29:41 -06:00
Christopher Jeffrey
e715bd18a0
simplify table regexes. possibly use backreferences for leading whitespace.
2013-01-02 22:10:53 -06:00
Christopher Jeffrey
29eacfdee3
refactor.
2013-01-02 22:04:56 -06:00
Christopher Jeffrey
d8af0af8e8
minor refactor.
2013-01-02 15:35:51 -06:00
Christopher Jeffrey
c07e160849
refactor again.
2013-01-02 15:31:39 -06:00
Christopher Jeffrey
4e9398d123
whitespace output.
2013-01-02 15:26:54 -06:00