-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #741 from ahmedGaber93/update-html-mention-rules
update htmlToMarkdownRules userMention and reportMention
- 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 |
---|---|---|
|
@@ -786,6 +786,9 @@ test('Mention user html to markdown', () => { | |
|
||
testString = '<mention-user accountID="1234" />'; | ||
expect(parser.htmlToMarkdown(testString, extras)).toBe('@[email protected]'); | ||
|
||
testString = '<mention-user accountID="1234"></mention-user>'; | ||
expect(parser.htmlToMarkdown(testString, extras)).toBe('@[email protected]'); | ||
}); | ||
|
||
test('Mention report html to markdown', () => { | ||
|
@@ -815,6 +818,9 @@ test('Mention report html to markdown', () => { | |
|
||
testString = '<mention-report reportID="1234" />'; | ||
expect(parser.htmlToMarkdown(testString, extras)).toBe('#room-name'); | ||
|
||
testString = '<mention-report reportID="1234"></mention-report>'; | ||
expect(parser.htmlToMarkdown(testString, extras)).toBe('#room-name'); | ||
}); | ||
|
||
describe('Image tag conversion to markdown', () => { | ||
|
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