From 8252f3a18b2be049a2cbef8bcf74339de88cc61e Mon Sep 17 00:00:00 2001
From: John Hildenbiddle
Date: Fri, 4 Feb 2022 02:12:00 -0600
Subject: [PATCH] Fix emoji image alt attribute
---
src/core/render/emojify.js | 2 +-
test/integration/__snapshots__/docs.test.js.snap | 2 +-
test/integration/__snapshots__/emoji.test.js.snap | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/core/render/emojify.js b/src/core/render/emojify.js
index 4d521089..a1061de4 100644
--- a/src/core/render/emojify.js
+++ b/src/core/render/emojify.js
@@ -1892,7 +1892,7 @@ function replaceEmojiShorthand(m, $1, useNativeEmoji) {
.concat('︎');
result = `${emojiUnicode}`;
} else {
- result = `
`;
+ result = `
`;
}
}
diff --git a/test/integration/__snapshots__/docs.test.js.snap b/test/integration/__snapshots__/docs.test.js.snap
index 34b7c70e..fa972a01 100644
--- a/test/integration/__snapshots__/docs.test.js.snap
+++ b/test/integration/__snapshots__/docs.test.js.snap
@@ -7,6 +7,6 @@ exports[`Docs Site coverpage renders and is unchanged 1`] = `
Getting Started
"
`;
-exports[`Docs Site navbar renders and is unchanged 1`] = `""`;
+exports[`Docs Site navbar renders and is unchanged 1`] = `""`;
exports[`Docs Site sidebar renders and is unchanged 1`] = `""`;
diff --git a/test/integration/__snapshots__/emoji.test.js.snap b/test/integration/__snapshots__/emoji.test.js.snap
index 808bab3a..b8dae28b 100644
--- a/test/integration/__snapshots__/emoji.test.js.snap
+++ b/test/integration/__snapshots__/emoji.test.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`Emoji Fallback emoji (images) 1`] = `"hh:mm
hh:mm:
hh:mm:ss
:mm:s
Namespace::SubNameSpace
Namespace::SubNameSpace::Class
2014-12-29T16:11:20+00:00
2020-12-03T15:05:57+00:00 (extended)
2020-12-03T15:05:57Z (extended)
:01:

1
1
1
1




"`;
+exports[`Emoji Fallback emoji (images) 1`] = `"hh:mm
hh:mm:
hh:mm:ss
:mm:s
Namespace::SubNameSpace
Namespace::SubNameSpace::Class
2014-12-29T16:11:20+00:00
2020-12-03T15:05:57+00:00 (extended)
2020-12-03T15:05:57Z (extended)
:01:

1
1
1
1




"`;
exports[`Emoji Native emoji 1`] = `"hh:mm
hh:mm:
hh:mm:ss
:mm:s
Namespace::SubNameSpace
Namespace::SubNameSpace::Class
2014-12-29T16:11:20+00:00
2020-12-03T15:05:57+00:00 (extended)
2020-12-03T15:05:57Z (extended)
:01:
😄︎
1😄︎
😄︎1
1😄︎1
😄︎😄︎😄︎
😄︎ 😄︎ 😄︎
"`;