mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
zero width joiner for emojis so no space is added when converting
This commit is contained in:
parent
fe684fdfb8
commit
f590036525
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ Discourse.Dialect.addPreProcessor(function(text) {
|
|||
|
||||
var before = text.charAt(m.index-1);
|
||||
if (!/\B/.test(before)) {
|
||||
replacement = " " + replacement;
|
||||
replacement = "\u200b" + replacement;
|
||||
}
|
||||
|
||||
text = text.replace(m[0], replacement);
|
||||
|
|
Loading…
Reference in a new issue