-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Expensify:main' into fix-#21753
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,12 @@ test('Test heading markdown replacement', () => { | |
|
||
testString = '# Heading should have only one new line after it.\n\n'; | ||
expect(parser.replace(testString)).toBe('<h1>Heading should have only one new line after it.</h1><br />'); | ||
|
||
testString = '# hello test.com'; | ||
expect(parser.replace(testString)).toBe('<h1>hello <a href=\"https://test.com\" target=\"_blank\" rel=\"noreferrer noopener\">test.com</a></h1>'); | ||
|
||
testString = '# hello [email protected]'; | ||
expect(parser.replace(testString)).toBe('<h1>hello <a href=\"mailto:[email protected]\">[email protected]</a></h1>'); | ||
}); | ||
|
||
// Sections starting with > are successfully wrapped with <blockquote></blockquote> | ||
|
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