2404 Commits

Author SHA1 Message Date
Trevor Buckner
bd4f8c464b Fix unrestricted "any character" for REDOS
And remove redundant unused capture group.
2020-07-02 11:59:31 -04:00
Trevor Buckner
4e7902ec11 Gaaaah lint 2020-06-30 17:50:19 -04:00
Trevor Buckner
4db32dc180 Links are masked only once per inline string 2020-06-30 17:49:11 -04:00
Trevor Buckner
56b6f5e950
Merge pull request #1 from UziTech/mask-reflinks
mask reflinks in a separate function
2020-06-30 16:43:47 -04:00
Tony Brix
2c4b996af7 more quickref.md fixes 2020-06-24 14:34:03 -05:00
Tony Brix
d233fd5806 mask reflinks 2020-06-20 10:25:48 -05:00
Tony Brix
b198b55eb0
Merge pull request #1712 from UziTech/hash-hash
decode hash in docs
2020-06-19 20:27:23 -05:00
Tony Brix
835f3a12f1 decode hash 2020-06-19 10:31:53 -05:00
Trevor Buckner
2a45677bf0 Remove redundant regex symbols
Found a few more cases of redundant symbols in addition to fixes suggested during review.
2020-06-18 10:00:27 -04:00
Trevor Buckner
54218fe164
Remove straggling "shouldfail: false" 2020-06-17 17:09:18 -04:00
Trevor Buckner
c60c9ba4fa Remove extra tests accidentally left in 2020-06-17 16:09:42 -04:00
Steven
bd4757fe62
Merge pull request #1704 from jun-sheaf/master
Fixes ordered list ")" delimiter
2020-06-17 15:59:40 -04:00
jun-sheaf
d8e12752cd Compiled 2020-06-17 18:29:05 +02:00
jun-sheaf
fcfe15fba6 Fixed Example 272 2020-06-17 18:28:37 +02:00
Randolf C
463f49d90c
Update src/rules.js
Co-authored-by: Tony Brix <tony@brix.ninja>
2020-06-17 17:27:35 +02:00
Randolf C
1f77fb0782
Update src/Tokenizer.js
Co-authored-by: Tony Brix <tony@brix.ninja>
2020-06-17 17:27:28 +02:00
Steven
26cb01f971
Merge pull request #1710 from UziTech/favicon
add favicon to docs
2020-06-17 11:13:20 -04:00
Trevor Buckner
e926e0cbfe Lint... 2020-06-17 11:08:11 -04:00
Trevor Buckner
335a6601d4 Added fixes to Strong
Fixes examples 391, 397, 399, 400, 401, 431, 443, 475, 476, 479, and 480
2020-06-17 11:06:25 -04:00
jun-sheaf
5920cf9cf8 Updated rules and created tests. 2020-06-17 11:50:00 +02:00
Randolf C
b4b909c00d
Update Lexer-spec.js 2020-06-17 11:33:12 +02:00
Randolf C
242933e9e1
Update Lexer-spec.js 2020-06-17 11:32:45 +02:00
Randolf C
33d30247e9
Update Lexer-spec.js 2020-06-17 11:29:56 +02:00
Randolf C
1dccde3075
Update Lexer-spec.js 2020-06-17 11:28:52 +02:00
Randolf C
c3a964d6c2
Update Lexer-spec.js 2020-06-17 11:28:11 +02:00
Trevor Buckner
4cbba074d6 Moved logic into Tokenizer. No longer injecting Reflinks
Reflinks are replaced with the string 'aaaa' of equal length to hide any asterisks or underscores that might have been inside, since these should not be included. Then, the resulting string is matched to the em regex. The positions of the captures are then used on the original string.
2020-06-17 00:41:06 -04:00
Tony Brix
1b3125b76f add favicon to docs 2020-06-16 11:06:38 -05:00
Trevor Buckner
556070bffc Updated rules for underscore em
Now fixes three more cases
2020-06-12 16:29:25 -04:00
Trevor Buckner
ea203cf923 Lint 2 2020-06-12 15:40:13 -04:00
Trevor Buckner
bc17deddb6 Lint 2020-06-12 15:37:18 -04:00
Trevor Buckner
7c6551e542 Properly handle reflinks that should be escaped
Modifies the em rule after the block tokens are generated to detect known reflinks and skip over them so they don't get mistakenly italicized.
2020-06-12 15:30:25 -04:00
Randolf C
7118e4de01
Update Tokenizer.js 2020-06-12 16:03:38 +02:00
Randolf C
94bc32e900
Update Tokenizer.js 2020-06-12 16:00:36 +02:00
Trevor Buckner
c38ee23f45 Fix Pedantic 2020-05-29 20:53:58 -04:00
Trevor Buckner
283ab9cf8a Deleted an extra line while removing comments 2020-05-29 16:33:49 -04:00
Trevor Buckner
4e2ec90374 Now passes several more tests
Added a check for the previous character to the  *em* Tokenizer. Needed to pass any tests where the em block starts with a punctuation character (e.g. commonmark example 368)
2020-05-29 16:25:46 -04:00
MarkedJS bot
7b3036f8c0 🗜️ build [skip ci] 2020-05-22 15:37:31 +00:00
Steven
ced3ff1e3f
Merge pull request #1685 from UziTech/fix-highlight-asyncs
fix async highlight not async
2020-05-22 11:36:22 -04:00
Trevor Buckner
40493bbc28 Follow GFM spec on Left-flanking-delimiter-runs 2020-05-21 12:56:31 -04:00
Tony Brix
0233262d76 fix async highlight sync 2020-05-21 10:26:48 -05:00
MarkedJS bot
19ebe51a27 🗜️ build [skip ci] 2020-05-20 15:50:16 +00:00
Tony Brix
04ea199b53
Merge pull request #1683 from UziTech/image-links 2020-05-20 10:49:03 -05:00
Tony Brix
d57c89d00e fix redos 2020-05-20 10:23:42 -05:00
Tony Brix
48448cc24f fix image links with escaped brackets 2020-05-19 15:58:33 -05:00
Hugh Secker-Walker
e516463b7e
Update smiley image url 2020-05-19 09:52:15 -04:00
Hugh Secker-Walker
e210c87ec3
chore(fix): Fix some problems with demo quickref 2020-05-19 07:24:02 -04:00
Tony Brix
8cfa29ccd2
Merge pull request #1677 from UziTech/release-1.1.0 v1.1.0 2020-05-16 16:42:50 -05:00
Tony Brix
cc8561afd5 1.1.0 2020-05-16 12:25:39 -05:00
Tony Brix
085b38570b update devdeps 2020-05-16 12:25:05 -05:00
MarkedJS bot
05f2fd68f8 🗜️ build [skip ci] 2020-05-14 15:54:39 +00:00