Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luc Bourdot
codimd
Commits
27ba5f91
Unverified
Commit
27ba5f91
authored
Mar 13, 2019
by
Christoph (Sheogorath) Kern
Committed by
GitHub
Mar 13, 2019
Browse files
Merge pull request #1166 from SISheogorath/fix/exportEmojis
Fix broken HTML export with emojis
parents
5e634aef
982775f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/extra.js
View file @
27ba5f91
...
...
@@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin(
(
match
,
utils
)
=>
{
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
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment