643 Commits

Author SHA1 Message Date
Josh Bruce
b2dd82aad3 Initial pass 2018-04-09 10:38:16 -04:00
Josh Bruce
19b5373701 Test spec 2018-04-09 10:28:43 -04:00
Josh Bruce
96f4488846 CommonMark Tests (#1160)
Add tests from CommonMark spec
2018-04-05 16:16:20 -04:00
Tony Brix
81e01d4faf add more edge cases 2018-04-05 09:34:03 -05:00
Tony Brix
6ce9c099e0 add tests 2018-04-05 09:34:02 -05:00
Tony Brix
25c456a5e7 lint 2018-04-05 00:00:37 -05:00
Josh Bruce
3f6b2c817d
Merge pull request #1185 from UziTech/eslint-all-the-things
Eslint all the things
2018-04-04 19:51:39 -04:00
Josh Bruce
8804676f98 Disable heading IDs (#1190)
* Add option to disable heading ids
* Alphabetize and add options to docs
2018-04-03 15:10:26 -04:00
Tony Brix
ada4a1d8c0 lint all js files 2018-03-29 13:00:59 -05:00
Paul Roub
de18d8a726 Use production, not unminified, code in marked spec test 2018-03-20 17:09:30 -04:00
Paul Roub
697af11e53 Added integration tests for explicitly-initialized ordered lists.
Fixed a bug in the initial implementation of ordered-list
initialization.

Add a simpler unit test around starting-from-zero.
2018-03-20 17:03:11 -04:00
Paul Roub
6b4f2ffa10 Start ordered lists using the initial numbers from markdown lists
Adds tests for list creation and continuation when starting with a
number other than 1.

Emits 'start' attribute only when necessary; simple cases behave as
always.
2018-03-15 12:56:59 -04:00
Federico Soave
163a482000 re-enable cm_autolinks test case (now passing) 2018-03-08 19:39:55 +01:00
Federico Soave
680a6c3c32 Merge remote-tracking branch 'markedjs/master' into cm_links 2018-03-08 19:36:17 +01:00
Federico Soave
e4fd972348 fix tests whitespace 2018-03-06 04:49:34 +01:00
Federico Soave
2e23540d57 adjust commonmark tests 544-548, 556, 560 that contain markup inside the image description.
NON-COMPLIANT with commonmark (just a recommendation. This can be fixed in the future by using the InlineLexer+TextRenderer)
2018-03-06 04:34:05 +01:00
Federico Soave
d29f68a130 fix tests in cm_links 2018-03-06 04:26:03 +01:00
Federico Soave
dfc5b3e65e remove commonmark test 535 (link precedence with other markup).
NON-COMPLIANT with commonmark
2018-03-06 04:05:30 +01:00
Federico Soave
ea48e96c8d fix tests in cm_links 2018-03-06 04:04:46 +01:00
Federico Soave
eea3932e45 fix tests in cm_links 2018-03-06 03:49:35 +01:00
Federico Soave
d47dc291ae fix test 513 2018-03-06 03:37:54 +01:00
Federico Soave
fc97171c81 run original tests with spaces between link text and label in pedantic mode 2018-03-06 03:37:37 +01:00
Federico Soave
e56e35a17f remove commonmark tests 505, 507-509 for link precedence with other markup. NON-COMPLIANT with commonmark 2018-03-06 03:19:44 +01:00
Federico Soave
5536922ecd allow link nesting, adjust tests 503-504 accordingly. NON-COMPLIANT with commonmark 2018-03-06 03:18:34 +01:00
Federico Soave
aeca6a13ad allow only one level of matching brackets in reference links text.
NON-COMPLIANT with commonmark. Adjust test 499 accordingly.
2018-03-06 03:07:22 +01:00
Federico Soave
2094181089 remove commonmark tests 492, 495-497 for link precedence with other markup. NON-COMPLIANT with commonmark 2018-03-06 03:03:42 +01:00
Federico Soave
7a80cdfceb Revert 13dd38a "add tests for link nesting" 2018-03-06 02:48:39 +01:00
Federico Soave
55f47f1aa2 remove commonmark tests 489-491 for nested links 2018-03-06 02:48:08 +01:00
Federico Soave
13dd38a1f0 add tests for link nesting 2018-03-06 02:35:56 +01:00
Federico Soave
51257395b3 run test cm_links with xhtml 2018-03-06 00:45:35 +01:00
Federico Soave
ca349c8c81 allow ONE level of matching parenthesis in link text.
NON-COMPLIANT with commonmark!
Adjust test #483 accordingly
2018-03-06 00:43:41 +01:00
Federico Soave
47365c124e allow brackets in link text if they are inside a code span. Add test. 2018-03-06 00:40:07 +01:00
Federico Soave
29d33d9a23 remove commonmark test #478 because we treat U+00A0 (non-breaking space) as a regular space. FIXME 2018-03-06 00:09:35 +01:00
Federico Soave
277d093e1c let html entities in link URIs pass through as-is (we cannot decode them all).
This is not required by commonmark, browsers will do just fine.
2018-03-05 23:41:05 +01:00
Federico Soave
d8ff951f8b allow unbalanced parenthesis in links URIs wrapped in angle brackets 2018-03-05 23:33:30 +01:00
Federico Soave
9f20c46829 allow ONE level of matching parenthesis in links.
NON-COMPLIANT with commonmark!
adjust test #468 accordingly.
2018-03-05 23:21:52 +01:00
Federico Soave
6750997974 test links_inline_style in pedantic mode 2018-03-05 22:10:49 +01:00
Federico Soave
dc9204800b test literal_quotes_in_titles in pedantic mode 2018-03-05 22:10:49 +01:00
Federico Soave
786334a76d allow frontmatter in original tests 2018-03-05 22:10:49 +01:00
Federico Soave
ef644184e7 encode urls in tests accordingly 2018-03-05 22:10:49 +01:00
Federico Soave
0904e44da5 add commonmark tests for links 2018-03-05 22:10:48 +01:00
Federico Soave
fb2f317311 rearrange test in cm_html_blocks to test end of file 2018-03-05 22:10:45 +01:00
Jamie Davis
214468b9b8
Merge pull request #1121 from UziTech/jasmine
[WIP] Jasmine 3.1.0
2018-03-04 15:10:14 -05:00
Federico Soave
7abf7022c1 adjust html_comments test case in accordance with commonmark 2018-03-04 16:26:15 +01:00
Federico Soave
c1ef53c605 add commonmark tests for html blocks 2018-03-04 16:09:17 +01:00
Federico Soave
bcf9abbcf5 divide html_comments test into subtests 2018-03-04 15:56:55 +01:00
Tony Brix
5768180999 travis build stages (#1113)
* add travis build stages

* add emoji
2018-03-04 08:40:04 -05:00
Tony Brix
9c6c13f3d3 fix tests 2018-03-04 00:51:00 -06:00
Tony Brix
79325aa9e1 add tests 2018-03-04 00:47:02 -06:00
Tony Brix
dce66a2849 add first test 2018-03-03 21:33:02 -06:00