mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
zero width joiner for emojis so no space is added when converting
This commit is contained in:
parent
fe684fdfb8
commit
f590036525
|
@ -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 New Issue
Block a user