Merge pull request #1166 from SISheogorath/fix/exportEmojis

Fix broken HTML export with emojis
This commit is contained in:
Christoph (Sheogorath) Kern 2019-03-13 11:50:50 +01:00 committed by GitHub
commit 27ba5f910d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin(
(match, utils) => { (match, utils) => {
const emoji = match[1].toLowerCase() const emoji = match[1].toLowerCase()
const div = $(`<img class="emoji" src="${serverurl}/build/emojify.js/dist/images/basic/${emoji}.png"></img>`) const div = $(`<img class="emoji" alt=":${emoji}:" src="${serverurl}/build/emojify.js/dist/images/basic/${emoji}.png"></img>`)
return div[0].outerHTML return div[0].outerHTML
} }
) )