0
0

Add ZWSP when federating emojis for Mastodon compatibility (#5810)

* Add ZWSP when federating emojis for Mastodon compatibility

* Use unicode escape sequence
This commit is contained in:
DW 2020-02-01 22:10:23 -05:00 committed by GitHub
parent 391500bdac
commit 2db861991a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ export function toHtml(tokens: MfmForest | null, mentionedRemoteUsers: IMentione
},
emoji(token) {
return doc.createTextNode(token.node.props.emoji ? token.node.props.emoji : `:${token.node.props.name}:`);
return doc.createTextNode(token.node.props.emoji ? token.node.props.emoji : `\u200B:${token.node.props.name}:\u200B`);
},
hashtag(token) {