637 Commits

Author SHA1 Message Date
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
Mateus Craveiro
95f687dd14 Limit ordered list marker 2018-12-17 21:18:44 -02:00
Stephen Hogsten
d4b948fc05 remove old test covered by gfm/cm 2018-12-14 11:27:09 -06: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
485248e87c
Added a test for the case: __test@test.com__ 2018-12-06 13:57:23 -05:00
Steven
ce7a5476cf
Update example number
Co-Authored-By: UziTech <tony@brix.ninja>
2018-12-05 12:14:18 -06:00
Steven
5b801d0b99
Update example number
Co-Authored-By: UziTech <tony@brix.ninja>
2018-12-05 12:12:43 -06:00
Tony Brix
917a1d46af make links case insensitive
closes #1350
2018-12-05 11:29:13 -06:00
Roman Hotsiy
2e7c9b5b29
tests: add a few extra tests for emphasis 2018-12-05 17:10:52 +02:00
aprotim
2353d957b2
Fix images test golden file. 2018-10-19 10:25:59 -07:00
aprotim
258edd933b
Fix images test input. 2018-10-19 10:25:24 -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
002c37434a Add missing semicolons to tests 2018-09-23 20:56:38 -04:00
Josh Bruce
6c2a614cea
Merge pull request #1331 from markedjs/fork-html-differ
use @markedjs/html-differ
2018-09-23 18:27:30 -04:00
Tony Brix
9dc6996d1c fix a few more spec examples 2018-09-18 16:33:23 -05:00
Federico Soave
51e97fd141 add tests from #1307, #1327, and #1337 2018-09-18 21:59:51 +02:00
Federico Soave
33408b9494 re-enable passing test 2018-09-18 21:27:10 +02:00
rich
d604680a6a Prevent matching other content that starts with these words 2018-09-16 15:57:12 +01:00
rich
4ba30dba6b [#1334] turn off typographic substitution in certain blocks 2018-09-15 11:22:47 +01:00
Tony Brix
261a9bcd93 ignoreSelfClosingSlash: true 2018-09-06 13:39:49 -05:00
Tony Brix
d277486e5c update percent done 2018-09-06 13:32:49 -05:00
Tony Brix
72f809fdd7 passing more tests 2018-09-06 13:16:39 -05:00
Tony Brix
57108fc5fc use @markedjs/html-differ 2018-09-06 13:07:05 -05:00
Federico Soave
1199b418ee lint 2018-08-30 15:04:21 +02:00
Federico Soave
cccbade63f Merge branch 'master' into bench_commonmark 2018-08-30 15:02:28 +02:00
Barry Woolgar
0ba25227cd Exclude punctuation to make 333, 450, 452, 505, and 535, pass 2018-08-03 19:49:10 +01:00
Barry Woolgar
935d1bbe80 Add tests covering single character strong and emphasis 2018-08-02 23:56:48 +01:00
Josh Bruce
706e07dbad
Merge pull request #1304 from UziTech/loose-lists
loose lists
2018-07-14 18:33:29 -04:00
Tony Brix
ddd31aa94d remove non-spec failing tests 2018-07-09 13:44:33 -05:00
Steven
c7d487e452
Merge pull request #1258 from tomtheisen/gfm-strike
GFM strikethrough compatibility
2018-07-09 12:34:01 -04:00
Steven
51cd03f525
Merge pull request #1305 from Trott/enable-468
enable CommonMark spec 468
2018-07-06 15:46:55 -04:00
Steven
2f86d9439f
Merge pull request #1303 from aduh95/patch-1
add hard line break when backslash at EOL
2018-07-06 15:42:28 -04:00
Steven
485fcae321
Merge pull request #1293 from Trott/trailing-period
fix gfm extended autolinking requiring multiple backpedals
2018-07-05 09:55:57 -04:00
Rich Trott
9c976cda1c enable CommonMark spec 468
A minor adjustment to the href-matching regexp permits CommonMark spec
468 to pass. All other passing specs are unaffected.

The regexp was incorrectly excluding parentheses as valid characters in
a URL.
2018-07-03 11:43:01 -07:00
Tony Brix
a22ef0f4a4 loose lists 2018-07-03 08:23:03 -05:00
Antoine du Hamel
35db4359b1
test: re-activate passing tests 2018-07-03 11:06:44 +02:00
Rich Trott
04e04b10d4 fix issues link references and prototypes
Link with names that clashed with properties inherited from the
Object prototype (such as "constructor") were not expanding. This fixes
this issue.

Before this change, markdown of this form...:

    Link: [constructor][].

    [constructor]: https://example.org/

...resulted in HTML output of this form:

    <p>Link: [constructor][].</p>

With this change, it now renders as expected:

    <p>Link: <a href="https://example.org/">constructor</a>.</p>
2018-06-28 13:41:43 -07:00