You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
Fix formatting not being applied after links (#7990)
This commit is contained in:
@@ -157,5 +157,12 @@ describe("Markdown parser test", () => {
|
||||
const md = new Markdown(testString);
|
||||
expect(md.toHTML()).toEqual(expectedResult);
|
||||
});
|
||||
|
||||
it('resumes applying formatting to the rest of a message after a link', () => {
|
||||
const testString = 'http://google.com/_thing_ *does* __not__ exist';
|
||||
const expectedResult = 'http://google.com/_thing_ <em>does</em> <strong>not</strong> exist';
|
||||
const md = new Markdown(testString);
|
||||
expect(md.toHTML()).toEqual(expectedResult);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user