1071 Commits

Author SHA1 Message Date
Federico Soave
fac31ed978 allow matched double quotes in link definition title (markdown.pl behavior).
Test literal_quotes_in_titles now passes.
fixup! c3e00590
2018-01-23 17:03:08 +01:00
Federico Soave
49982e82cc disable gfm for old markdown.pl test case 2018-01-23 16:29:32 +01:00
Federico Soave
f514b92b5b exclude test 607 in gfm_links, which does not pass FIXME 2018-01-23 16:29:31 +01:00
Federico Soave
ca455a68de gfm autolinks: backpedal on trailing punctuation
(see https://github.github.com/gfm/#extended-autolink-path-validation)
2018-01-23 16:29:31 +01:00
Federico Soave
187d46f294 email address domain must contain at least a dot and must not end with dash or underscore 2018-01-23 16:29:31 +01:00
Federico Soave
00f1f7a239 new gfm autolink rule: http/www URLs and email addresses 2018-01-23 16:29:31 +01:00
Federico Soave
ed6d145d22 remove non-compliant test case 2018-01-23 16:29:31 +01:00
Federico Soave
6cba7caad6 add gfm tests for autolinks 2018-01-23 16:29:31 +01:00
Federico Soave
b3769fc7a7 adjust mangle_xss test case to match commonmark output 2018-01-23 16:29:30 +01:00
Federico Soave
a8f2d7ff6e new rule for autolinks, adjust html rules accordingly.
test 574 does not pass because of url encoding FIXME)
2018-01-22 19:03:15 +01:00
Federico Soave
dc85deedb7 add commonmark tests for autolinks 2018-01-22 19:03:14 +01:00
Cory Forsyth
6d974b1dbf Do not autolink a trailing "!" in a URL
* Expand gfm link tests to include all possible ending punctuation
2018-01-22 19:03:14 +01:00
Josh Bruce
84c330b62b
Merge pull request #1029 from Feder1co5oave/fixup_456
Fix failing case
2018-01-22 11:25:52 -05:00
Federico Soave
d381127ca2 fix test case introduced in 4bbba32 2018-01-22 15:47:57 +01:00
Josh Bruce
1570f7a405
Merge pull request #944 from gibson042/document-xhtml
Document the xhtml option
2018-01-21 12:09:00 -05:00
Josh Bruce
46e40a4567
Merge pull request #711 from ojongerius/correct_readme
Values in example do not always match defaults.
2018-01-21 11:37:12 -05:00
Josh Bruce
024e378f43
Merge pull request #682 from Feder1co5oave/fix_typeerror
Throw error on non-string input
2018-01-20 17:16:11 -05:00
Josh Bruce
68aab24f7e
Merge pull request #1023 from Feder1co5oave/new_blockquote
[commonmark] Make blockquotes commonmark compliant
2018-01-20 17:14:44 -05:00
Josh Bruce
19f6afe4aa
Merge pull request #456 from Feder1co5oave/clean-segments
IDs of headings with inline tokens (link, em, bold...)
2018-01-20 16:09:27 -05:00
Josh Bruce
a98bad2430
Merge pull request #1013 from Feder1co5oave/fix-backticks2
fix backticks in inline code (replaces #503, fixes #312)
2018-01-20 15:46:19 -05:00
Josh Bruce
a78d51f775
Merge pull request #1014 from AndyLnd/master
chore: remove unused flags variable
2018-01-20 15:38:27 -05:00
Josh Bruce
a59837f586
Merge pull request #1018 from Feder1co5oave/new_link_def
[commonmark] Make link definitions commonmark compliant
2018-01-20 15:35:10 -05:00
Federico Soave
e5527fbbf4 [lint] auto-fix code style with npm run lint 2018-01-20 03:23:50 +01:00
Federico Soave
d79bbb68a0 [lint] add amd environment to eslint to declare define global 2018-01-20 03:22:23 +01:00
Federico Soave
3bbcc885dd [lint] fix already declared/unused variables 2018-01-20 03:21:46 +01:00
Federico Soave
565b4a0e5b [lint] make the outer function a recognizable IIFE 2018-01-20 03:12:08 +01:00
Federico Soave
d9c471e265 [lint] fix var declarations 2018-01-20 03:12:08 +01:00
Federico Soave
1a19028b66 [lint] fix whitespace 2018-01-20 03:12:08 +01:00
Federico Soave
6f8922e296 [lint] add eslint indent rule 2018-01-20 03:12:08 +01:00
Federico Soave
7e1836f547 [lint] add parens to empty constructor calls 2018-01-20 03:12:03 +01:00
Federico Soave
b2edbd6464 [lint] refactor replace() with an OOP approach. ESlint is happier. 2018-01-20 03:11:56 +01:00
Federico Soave
15bcca6461 [lint] edit eslint rules to fit marked.js current code style 2018-01-20 03:11:51 +01:00
Federico Soave
2fa274284e [lint] use eslint + standard rules to lint marked.js 2018-01-20 03:11:36 +01:00
Federico Soave
399cf8235f add commonmark tests for blockquotes. Example 198 and 200 are disabled since they do not pass, FIXME 2018-01-19 03:58:30 +01:00
Federico Soave
f45dc385d9 match setext headings just before paragraphs, then only paragraph continuations are matched inside blockquotes (see http://spec.commonmark.org/0.28/#example-197) 2018-01-19 03:58:30 +01:00
Federico Soave
1a71ae06bf new blockquote rule: match any paragraph-like content up to next line (laziness rule), or anything on the current line. Change paragraph rule accordingly, and make it non-greedy 2018-01-19 03:58:30 +01:00
Костя Третяк
aece9b2732 Overwritten the test for a more precise wording. 2018-01-19 03:58:30 +01:00
Federico Soave
911780dcca fix def_blocks test: link reference definition cannot interrupt a paragraph + blockquote laziness rule, according to commonmark spec
(see review of #974. Partial replay of 98ac7a4)
2018-01-19 03:58:18 +01:00
Federico Soave
c7798f412b exclude test 167 in link_defs that does not pass. FIXME 2018-01-19 03:33:11 +01:00
Federico Soave
9400980e16 paragraph rule: link defs cannot interrupt a paragraph 2018-01-19 03:25:33 +01:00
Federico Soave
a5c4889cf0 link def labels cannot contain balanced brackets 2018-01-19 03:25:33 +01:00
Federico Soave
f2ebbd1601 first link definition takes precedence 2018-01-19 03:25:33 +01:00
Federico Soave
d7597f1732 allow link definitions in blockquotes too 2018-01-19 03:25:33 +01:00
Federico Soave
c3e005908e new rule for link definitions: allow for special chars in label and title, multiline 2018-01-19 03:25:33 +01:00
Federico Soave
38f1b01036 allow escaped or balanced square brackets in shortcut reflinks 2018-01-19 03:25:33 +01:00
Federico Soave
4bbba32626 add commonmark tests for link definitions 2018-01-19 03:25:33 +01:00
AndyTheGiant
958777e9fe remove unused flags 2018-01-15 18:16:54 +01:00
Federico Soave
379c2c22bf add tests for clean heading IDs 2018-01-15 03:30:43 +01:00
Federico Soave
015327bea2 fix test accordingly 2018-01-15 03:25:27 +01:00
Federico Soave
60738f8343 export TextRenderer for convenience 2018-01-15 03:25:26 +01:00