Federico Soave
c345a82622
lint es5 code only
2018-02-08 19:14:50 +01:00
Federico Soave
d4db0b2e65
[lint] remove unused variable
2018-02-07 22:04:05 +01:00
Josh Bruce
735d4ceb14
Update README.md
2018-02-06 19:47:52 -05:00
Josh Bruce
8de10c4d58
Update README.md
2018-02-06 19:47:41 -05:00
Federico Soave
1bfed0377d
automatically lint test/index.js too
2018-02-02 17:13:36 +01:00
Federico Soave
6d2369d195
revert, local modules are put in PATH by npm automatically
2018-02-02 17:12:23 +01:00
Federico Soave
5c45ad6ded
use local copy of gulp to minify
2018-02-02 07:05:52 +01:00
Tony Brix
d73174d09c
set showdown version to *
2018-02-02 07:01:09 +01:00
Tony Brix
2ab2bafc4b
build minified file
2018-02-02 07:01:09 +01:00
Tony Brix
05e770d435
reformat text runner
2018-02-02 07:01:09 +01:00
Tony Brix
08e0873b48
add peer dependencies
2018-02-02 07:01:09 +01:00
Federico Soave
560c5cb13b
Merge branch 'master' into lint
2018-01-26 04:57:18 +01:00
Josh Bruce
6b0416d109
Merge pull request #1035 from Feder1co5oave/fix_hr
...
[commonmark] make thematic breaks (<hr>) compliant
2018-01-25 15:39:20 -05:00
Federico Soave
b8437b0742
fix underscore emphasis (apply commonmark flanking rule and rule 12)
2018-01-25 17:10:10 +01:00
Federico Soave
2ea539ad67
add commonmark test for thematic breaks
2018-01-25 17:08:13 +01:00
kythyria
1c780b9985
Fix the regexes for thematic breaks
...
Commonmark and GFM both agree that -_- is literal characters, not <hr>,
as all three characters must be the same.
Also change the test harness to only look for .text and .html files
since it was choking on vim's swapfiles.
And add some tests to catch what this fixes.
2018-01-25 17:08:13 +01:00
Josh Bruce
33b444c360
Merge pull request #1033 from Feder1co5oave/quotes_in_titles
...
Make legacy test literal_quotes_in_titles pass
2018-01-24 19:31:45 -05:00
Josh Bruce
eeb7ac5565
Merge pull request #1034 from Feder1co5oave/new_autolink
...
[commonmark]+[gfm] make autolinks compliant
2018-01-24 08:00:16 -05:00
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