800 Commits

Author SHA1 Message Date
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
Federico Soave
31dffdeb23 pass only the textual part as the 'raw' argument for heading renderer 2018-01-15 03:25:18 +01:00
Federico Soave
de73c39038 strip unused argument (introduced in 2636f85) 2018-01-15 02:34:41 +01:00
Federico Soave
4bc3126099 add tests for codespans with backticks in them 2018-01-14 23:19:52 +01:00
Federico Soave
b2a07608e1 fix backticks in inline code (fixes #312) 2018-01-14 23:19:51 +01:00
Josh Bruce
3668af8182
Merge pull request #1011 from Feder1co5oave/fix-645
Preserve trailing newlines in code fences
2018-01-12 17:10:26 -05:00
Federico Soave
2c11624736 preserve trailing newlines in code fences 2018-01-12 18:02:49 +01:00
Josh Bruce
3175599eae
Merge pull request #612 from guotie/patch-1
Update marked.js
2018-01-09 22:44:29 -05:00
Josh Bruce
b4bac41d98
Merge pull request #1009 from Feder1co5oave/help_noman
Print help without `man`
2018-01-09 19:52:01 -05:00
Federico Soave
823a080420 print help message when man is unavailable 2018-01-09 15:07:01 +01:00
Federico Soave
4179e639ed generate textual manpage 2018-01-09 15:07:01 +01:00
Josh Bruce
1dc772bb94
Merge pull request #1001 from chjj/release-0.3.11
WIP: Release 0.3.12
v0.3.12
2018-01-08 19:10:48 -05:00
Josh Bruce
39621942cb Release 0.3.12 2018-01-08 19:09:48 -05:00
Josh Bruce
9b4c6f9dbb Merge branch 'master' into release-0.3.11 2018-01-08 19:08:04 -05:00
Josh Bruce
1036093b64
Merge pull request #1007 from KostyaTretyak/revert
Revert 98ac7a4 and a477d1d
2018-01-08 19:06:17 -05:00
Костя Третяк
bff566720d
Revert 98ac7a4395 and a477d1d0e2 2018-01-08 19:50:03 +02:00
Josh Bruce
ef80689b9e
Merge pull request #1004 from UziTech/sort-tests
sort tests
2018-01-07 13:37:25 -05:00
Tony Brix
7b6e2ef53d remove -g flag 2018-01-07 12:20:06 -06:00
Tony Brix
51c97590ac use --glob 2018-01-07 11:54:28 -06:00
Tony Brix
f04e1669bd fix test names 2018-01-07 11:31:16 -06:00
Tony Brix
7747978035 enable only certain tests 2018-01-07 11:25:24 -06:00