1
0
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:
Robin
2022-03-08 08:12:36 -05:00
committed by GitHub
parent 85260ad643
commit 1f4e286db9
2 changed files with 25 additions and 1 deletions

View File

@@ -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);
});
});
});