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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
});
});
});