dependabot[bot]
320aeee27b
chore(deps-dev): Bump eslint-config-standard from 14.1.1 to 16.0.1 ( #1809 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony Brix <tony@brix.ninja>
2020-11-06 00:45:14 -06:00
Tony Brix
5f9cafd49c
fix: list alignment ( #1810 )
...
* fix: fix list alignment
* test: add test
* test: update passing tests
* move regex to rules
* clean up code
* move item back to top
2020-11-04 15:23:04 -06:00
Tony Brix
ef2f9eecff
chore(deps): Remove markdown dependency ( #1792 )
2020-10-22 14:18:01 -05:00
Tony Brix
6355ac2d6f
fix: fix indented code in list item ( #1762 )
2020-10-21 09:38:23 -05:00
Tony Brix
c8a2b59d83
remove focused tests
2020-09-21 00:21:56 -05:00
Tony Brix
baece60557
test marked.parseInline
2020-09-20 23:01:11 -05:00
Tony Brix
9576a982ff
fix underscore adjacent to asterisk
2020-09-07 21:43:28 -05:00
Steven
1d6afc1774
Merge pull request #1748 from UziTech/indented-tables
...
fix indented tables to follow gfm spec
2020-08-13 10:33:43 -04:00
Tony Brix
2e99532bbd
fix indented tables to act like gfm
2020-08-12 16:21:46 -05:00
hubenchang0515
52872d2121
fix bug : Cannot break line well [ #1537 ]( https://github.com/markedjs/marked/issues/1537 )
...
Cannot use **(WhiteSpace)(WhiteSpace)(Return)** to break line while only one characher before it.
And if use special character, it will reset the character count
brought by [#1460 ](https://github.com/markedjs/marked/pull/1460 )
2020-08-12 10:32:44 +08:00
Tony Brix
3b8358025d
test comment to end of doc
2020-08-07 11:19:47 -05:00
Dmitriy Derepko
464045ab55
Added testcase and fixed #1738
2020-08-06 19:56:06 +03:00
Steven
ba130648df
Merge pull request #1728 from flouc001/nfe/dry-run-slug
...
NFE: add dry run capabilities to default slugger
2020-07-15 08:46:24 -04:00
flouc001
75b2646687
add sequence test
2020-07-15 08:16:03 +01:00
Callum
014fbcf43f
add assertion to existing test
...
Co-authored-by: Tony Brix <tony@brix.ninja>
2020-07-15 08:03:31 +01:00
Tony Brix
dddf9ae72c
Merge pull request #1686 from calculuschild/EmphasisFixes
2020-07-13 08:34:55 -05:00
flouc001
710658cb61
use options param, update docs, update tests
2020-07-12 19:38:37 +01:00
flouc001
7c35a842a6
add dry run capabilities to default slugger
2020-07-11 09:24:46 +01:00
Tony Brix
a761316b31
Merge pull request #1726 from UziTech/show-rules
...
Add `npm run rules`
2020-07-09 16:36:18 -05:00
Tony Brix
f8193eda1a
add npm run rules
2020-07-09 12:16:43 -05:00
Trevor Buckner
211b9f9a20
Removed Lookbehinds
...
Beginning and End delimiters for EM and Strong must be searched in a separate regex to work without lookbehinds. This invalidates the regex that skips over blocks (code, html, etc.) that take precedence over EM or Strong blocks.
Getting around this means we must now mask not only reflinks, but all enclosed blocks which were previously just skipped over in the Regex.
Add one check for overlapping Strong block when testing EM, now passes Commonmark 390 and 471
2020-07-08 16:00:12 -04:00
Trevor Buckner
4db32dc180
Links are masked only once per inline string
2020-06-30 17:49:11 -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
jun-sheaf
fcfe15fba6
Fixed Example 272
2020-06-17 18:28:37 +02: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
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