600 Commits

Author SHA1 Message Date
Tony Brix
d9f22d2726 separate eslint config 2019-05-03 20:59:43 -05:00
Josh Bruce
67b91cf122
Merge pull request #1464 from UziTech/nested-blockquotes
Nested blockquotes
2019-05-03 15:09:31 -07:00
jocs
0ec9fa90b6 fix eslint error and change commonmark to 0.x 2019-04-17 22:58:55 +08:00
jocs
be099c4fab fix: failed commonmark examples 57 and 40 2019-04-17 22:48:11 +08:00
Tony Brix
8316a936cd clean up code 2019-04-12 10:56:54 -05:00
Tony Brix
8da970cd2c no recursion for nested blockquotes 2019-04-09 10:17:59 -05:00
Anders Kaseorg
be27472a81 Improve worst-case performance of inline.text regex
The old regex may take quadratic time to scan for potential line
breaks or email addresses starting at every point.  Fix it to avoid
scanning from points that would have been in the middle of a previous
scan.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-04-04 11:13:51 -07:00
Tony Brix
42e816c2a2 fix again 2019-03-12 15:23:12 -05:00
Tony Brix
246dd3df54 fix whitespace after tag 2019-03-12 15:20:46 -05:00
Tony Brix
0f0b763748 allow html without \n after 2019-03-12 13:04:45 -05:00
Tony Brix
e540b6a344
Merge pull request #1446 from UziTech/list-table
Fix tables in a list
2019-03-12 09:20:12 -05:00
Tony Brix
f8679c97c2
Merge pull request #1439 from UziTech/new-line-after-table
New line after table
2019-03-12 09:17:11 -05:00
Tony Brix
6c22ae4e9e tables don't have to be top level 2019-03-11 09:07:25 -05:00
Tony Brix
85ba901364
Update lib/marked.js
Co-Authored-By: x13machine <brandanw2@gmail.com>
2019-03-08 14:26:32 -06:00
x13machine
f0fa0740fa add token boolean to listitem parameter 2019-03-08 12:38:38 -06:00
Tony Brix
11d8f6568b
Merge branch 'master' into new-line-after-table 2019-03-08 11:11:27 -06:00
Tony Brix
27fdafbd91 fix new line after table 2019-03-07 16:21:33 -06:00
Tony Brix
9dc35bf65a remove title from link 2019-03-05 20:51:46 -06:00
Tony Brix
b44ae6e1ea fix link 2019-02-20 13:20:24 -06:00
Tony Brix
ceee1784fc remove continue 2019-02-08 08:14:59 -06:00
Tony Brix
77a7826fbe use function to check for end of link 2019-02-07 10:44:10 -06:00
Federico Soave
cc8a45288b Allow only ONE level of nested parenthesis in link uris (as previously intended in 9f20c4682). Reverts 9c976cda1. Fixes #1405. Disable cm test 468. 2019-01-13 19:07:00 +01:00
Josh Bruce
dfbc9a1efd
Merge pull request #1401 from styfle/slugger2
Fix duplicate heading id
2018-12-31 15:10:57 -06:00
Steven
5c926e227b Fix slugger & unit tests 2018-12-21 15:23:33 -08:00
Tony Brix
7e1088fe2a
Merge pull request #1400 from mccraveiro/strong-tag
Fix strong tag
2018-12-20 16:37:49 -06:00
Steven
53d7ba0304
Merge pull request #1397 from mccraveiro/escape-tag
Fix tag escaping
2018-12-20 16:39:57 -05:00
Steven
e5e5b097a6
Merge pull request #1395 from mccraveiro/empty-list
Fix empty list items
2018-12-20 16:26:39 -05:00
Steven
08d9632bdf Fix duplicate heading id 2018-12-20 16:07:10 -05:00
Mateus Craveiro
d010745cf1 Fix strong tag when the same character is the content 2018-12-20 16:02:19 -02:00
Mateus Craveiro
e51bca64b8 Fix tag escaping 2018-12-20 02:52:47 -02:00
Mateus Craveiro
a0c8eea90f Fix empty list items 2018-12-19 19:07:33 -02:00
Mateus Craveiro
419e6548bf Fix blockquote paragraph continuation 2018-12-19 18:29:05 -02:00
Steven
82ace248de
Merge pull request #1391 from mccraveiro/ordered-list
Limit ordered list marker length
2018-12-18 09:50:46 -05:00
Steven
9a522d6bf4
Merge pull request #1005 from KostyaTretyak/patch-renderer
Add message: token type cannot be found
2018-12-18 09:44:34 -05:00
Mateus Craveiro
95f687dd14 Limit ordered list marker 2018-12-17 21:18:44 -02:00
Steven
2d94bf39ed
Merge pull request #684 from kohler/adjacentlists
Fix handling of adjacent lists.
2018-12-10 12:27:29 -05:00
Eddie Kohler
a48a9f0fc4 Fix handling of adjacent lists.
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix #530.
2018-12-10 11:26:13 -05:00
Federico Soave
ca52d38899 use only the first word of the inforstring as the languauge in code blocks (pass cm example 112) 2018-12-08 14:13:37 +01:00
Federico Soave
30a73a36e3 fences must be indent up to 3 spaces (pass cm example 106) 2018-12-08 14:04:42 +01:00
Federico Soave
2f19392e34 handle fenced code blocks ended by end of file (or parent container) and info string compliant to commonmark 2018-12-08 14:02:57 +01:00
Federico Soave
d0aa0b1a08 allow the closing fence to be longer that the opening one (pass cm example 93) 2018-12-08 13:01:36 +01:00
Federico Soave
67a5941f4d require closing fence to be on a new line (fix #1058), while still allowing empty code blocks 2018-12-08 12:56:04 +01:00
Steven
06297df672
Merge pull request #1384 from UziTech/url-case-insensitive
Make autolinks case insensitive
2018-12-06 16:16:38 -05:00
Anis Ladram
dbaac49878
Changed order of autolink processing 2018-12-05 19:56:39 -05:00
Tony Brix
917a1d46af make links case insensitive
closes #1350
2018-12-05 11:29:13 -06:00
Tony Brix
13868676a4
Remove trailing space
Co-Authored-By: RomanGotsiy <gotsijroman@gmail.com>
2018-12-05 16:31:24 +02:00
Roman Hotsiy
3778730c8f
Fix emphasis followed by a punctuation (fixes #1378) 2018-12-05 11:31:31 +02:00
Aprotim Sanyal
01ce9d9b9e Fix lint errors 2018-10-17 17:05:25 -07:00
Aprotim Sanyal
27d2619181 Fix where I accidentaly overwrote a change upstream 2018-10-17 16:55:00 -07:00
Aprotim Sanyal
527e24db2a Move URL handling (incl. sanitization) into a helper 2018-10-17 16:30:57 -07:00