From 982775f6dc12f36bc3857e6d1f9816483f0c71b1 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 9 Mar 2019 15:03:53 +0100 Subject: [PATCH] Fix broken HTML export with emojis HTML export was broken due to missing alt-attribute for emojis. This patch adds the old alt-element style and restores the exportability this way. Signed-off-by: Sheogorath --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/extra.js b/public/js/extra.js index f8e0eb220..b80290d1d 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin( (match, utils) => { const emoji = match[1].toLowerCase() - const div = $(``) + const div = $(`:${emoji}:`) return div[0].outerHTML } )