585 Commits

Author SHA1 Message Date
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
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
Roman Hotsiy
92509479e4
fix emphasis closing by single _ part of right-flanking run
fixes CommonMark: 456, 355, 451, 354, 356
2018-10-08 15:34:45 +03:00
Steven
bcace20a30 Add missing semicolons 2018-09-23 20:27:20 -04:00
Tony Brix
9dc6996d1c fix a few more spec examples 2018-09-18 16:33:23 -05:00
Tony Brix
3271b8b62e fix inline code regex 2018-09-18 16:29:11 -05:00
Federico Soave
8117b56a2e [gfm] only do backtracking (extended autolink path validation) for www or http autolinks 2018-09-18 21:34:10 +02:00
Federico Soave
984c365aeb [gfm] use new extended email autolink rule to avoid autolinking email addresses in code spans (fixes #1218) 2018-09-18 21:26:09 +02:00
rich
d604680a6a Prevent matching other content that starts with these words 2018-09-16 15:57:12 +01:00
rich
f09095ef0e Use neater alternation in regexes for improved readability 2018-09-16 08:16:33 +01:00
rich
4ba30dba6b [#1334] turn off typographic substitution in certain blocks 2018-09-15 11:22:47 +01:00
Костя Третяк
eb9f08cbb3 Refactoring the old escape() function improved performance on 30-40% 2018-09-11 17:18:38 +03:00
Raphaël Huchet
c4851d0492
update copyright 2018-08-27 10:22:45 +02:00
Barry Woolgar
431884f6a6 Remove commented line 2018-08-15 15:39:24 +01:00
Barry Woolgar
0ba25227cd Exclude punctuation to make 333, 450, 452, 505, and 535, pass 2018-08-03 19:49:10 +01:00
barrywoolgar
a4460a9301
Updated inline grammer regexes for strong and em
Attempt to match special case single character matches before the more permissive standard regexes
2018-08-02 18:27:40 +01:00
Josh Bruce
706e07dbad
Merge pull request #1304 from UziTech/loose-lists
loose lists
2018-07-14 18:33:29 -04:00