-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into @tomekzaw/fix-markdown-style-update-with-emoji
- Loading branch information
Showing
20 changed files
with
314 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,10 @@ describe('mention-user', () => { | |
test('with punctation marks', () => { | ||
expect('@[email protected]!').toBeParsedAs([{type: 'mention-user', start: 0, length: 14}]); | ||
}); | ||
|
||
test('with phone number', () => { | ||
expect('@+1234567890 Hello!').toBeParsedAs([{type: 'mention-user', start: 0, length: 12}]); | ||
}); | ||
}); | ||
|
||
test('plain link', () => { | ||
|
@@ -188,13 +192,6 @@ describe('blockquote', () => { | |
{type: 'syntax', start: 0, length: 1}, | ||
]); | ||
}); | ||
|
||
test('without space', () => { | ||
expect('>Hello world!').toBeParsedAs([ | ||
{type: 'blockquote', start: 0, length: 13}, | ||
{type: 'syntax', start: 0, length: 1}, | ||
]); | ||
}); | ||
}); | ||
|
||
test('multiple blockquotes', () => { | ||
|
@@ -242,15 +239,6 @@ test('nested bold and italic', () => { | |
}); | ||
|
||
describe('nested h1 in blockquote', () => { | ||
test('without spaces', () => { | ||
expect('># Hello world').toBeParsedAs([ | ||
{type: 'blockquote', start: 0, length: 14}, | ||
{type: 'syntax', start: 0, length: 1}, | ||
{type: 'syntax', start: 1, length: 2}, | ||
{type: 'h1', start: 3, length: 11}, | ||
]); | ||
}); | ||
|
||
test('with single space', () => { | ||
expect('> # Hello world').toBeParsedAs([ | ||
{type: 'blockquote', start: 0, length: 15}, | ||
|
@@ -261,11 +249,11 @@ describe('nested h1 in blockquote', () => { | |
}); | ||
|
||
test('with multiple spaces after #', () => { | ||
expect('># Hello world').toBeParsedAs([ | ||
{type: 'blockquote', start: 0, length: 17}, | ||
expect('> # Hello world').toBeParsedAs([ | ||
{type: 'blockquote', start: 0, length: 18}, | ||
{type: 'syntax', start: 0, length: 1}, | ||
{type: 'syntax', start: 1, length: 2}, | ||
{type: 'h1', start: 3, length: 14}, | ||
{type: 'syntax', start: 2, length: 2}, | ||
{type: 'h1', start: 4, length: 14}, | ||
]); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.