FIX: keep emoji syntax for custom emojis in quotes (#6488)

This commit is contained in:
Maja Komel
2018-10-15 04:57:15 +02:00
committed by Guo Xiang Tan
parent d408073fc2
commit 57b52cd1de
2 changed files with 13 additions and 1 deletions

View File

@@ -340,3 +340,15 @@ QUnit.test("keeps emoji and removes click count", assert => {
assert.equal(toMarkdown(html), markdown);
});
QUnit.test("keeps emoji syntax for custom emoji", assert => {
const html = `
<p>
<img class="emoji emoji-custom" title=":custom_emoji:" src="https://d11a6trkgmumsb.cloudfront.net/images/emoji/custom_emoji" alt=":custom_emoji:" />
</p>
`;
const markdown = `:custom_emoji:`;
assert.equal(toMarkdown(html), markdown);
});