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
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
c38ee23f45
Fix Pedantic
2020-05-29 20:53:58 -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
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
Tony Brix
48448cc24f
fix image links with escaped brackets
2020-05-19 15:58:33 -05:00
Tony Brix
267a176c9a
add use walkTokens tests
2020-05-12 19:57:27 -05:00
Tony Brix
a337c76ff6
add walkTokens option
2020-05-12 19:57:27 -05:00
Tony Brix
db3b61bcc9
add tests
2020-05-12 19:57:27 -05:00
Tony Brix
cb42b9003c
add list_item type to list item token
2020-05-12 19:57:27 -05:00
Steven
cec5f5eb27
Merge pull request #1674 from UziTech/task-no-tokens
...
fix loose task list with no tokens
2020-05-12 18:49:42 -04:00
Tony Brix
369bf41681
fix loose task list with no tokens
2020-05-12 15:58:47 -05:00
Yaroslav Admin
13b0c07b0c
render code with and without language with the trailing newline
2020-05-10 22:43:32 +02:00
Tony Brix
a220ce91ca
Merge pull request #1660 from UziTech/fix-em-comma
2020-05-04 10:45:23 -05:00
Steven
0a57e47d11
Merge pull request #1652 from UziTech/codespan-newline
...
Codespan newline
2020-05-03 15:19:53 -04:00
Tony Brix
61bc4ba78a
fix underscore emphasis then comma
2020-05-02 01:13:46 -05:00
Tony Brix
c2d6d2fa31
only strip spaces
2020-04-24 01:00:27 -05:00
Tony Brix
6ad20acfc1
add newline to space test
2020-04-24 00:51:16 -05:00
Tony Brix
60d810f3de
test only remove one space
2020-04-24 00:44:02 -05:00
Tony Brix
143ae5d09a
fix codespan spaces
2020-04-24 00:39:47 -05:00
Tony Brix
8a73726d4a
add test
2020-04-23 22:59:45 -05:00
Ivan Demidov
e6fe42110c
perf: diff string
2020-04-23 18:20:24 +03:00
Ivan Demidov
8b8ecf1d94
style: after lint
2020-04-21 10:44:46 +03:00
Ivan Demidov
70dc21f4a1
test: perf toRenderExact method
2020-04-21 10:44:46 +03:00
Ivan Demidov
ad26aeb1d5
test: perf change deepEqual to renderExtra
2020-04-21 10:44:46 +03:00
Ivan Demidov
ce80652bac
style: after lint
2020-04-21 10:44:46 +03:00
Ivan Demidov
f3eb715695
test: style expected for deepEqual
2020-04-21 10:44:46 +03:00
Ivan Demidov
62efe07a49
test: add deepEqual rules
2020-04-21 10:44:46 +03:00
Ivan Demidov
91a884a08c
test: add condition for deepEqual rules
2020-04-21 10:44:46 +03:00
Ivan Demidov
fbbdcc8dd5
test: add helper toDeepEqual for strict html equal
2020-04-21 10:44:46 +03:00
Ivan Demidov
55cae086e3
test: inden in render code, issue #1488
2020-04-21 10:44:46 +03:00
Tony Brix
07f2b334f0
return false to use last renderer/tokenizer
2020-04-19 01:08:54 -05:00
Tony Brix
dd86b714a3
add marked.use tests
2020-04-19 00:04:06 -05:00
Tony Brix
451101aa36
Merge pull request #1636 from Scrum/master
...
fix: Intra-word emphasis can match the wrong asterisks
2020-04-14 14:31:40 -05:00
Tony Brix
4947ce5078
only send needed variables to tokenizer
2020-04-14 13:29:51 -05:00
Ivan Demidov
5193c32233
Merge branch 'master' into fix/closing-delimited
2020-04-14 16:21:07 +03:00
Ivan Demidov
a4d0b62849
test: remove shouldFail, issue #1594
2020-04-14 10:19:16 +03:00
Ivan Demidov
d65ec2a849
test: for issue #1248
2020-04-13 12:02:51 +03:00
Tony Brix
c735fa58ef
Merge branch 'master' into master
2020-04-09 20:09:04 -05:00
Tony Brix
17d81796da
add tokenizer
2020-04-08 13:04:29 -05:00
Tony Brix
5da102d024
rename functions
2020-04-06 22:33:40 -05:00