0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 21:42:44 +00:00

missed one commit

This commit is contained in:
Trevor Buckner
2024-04-30 10:52:39 -04:00
parent 0751da42b6
commit 72160f5daf

View File

@@ -228,6 +228,7 @@ const Editor = createClass({
while (startIndex >= 0) {
emojiRegex.lastIndex = startIndex;
let match = emojiRegex.exec(line);
if (match) {
let tokens = Markdown.marked.lexer(match[0]);
tokens = tokens[0].tokens.filter(t => t.type == 'emoji')