Improve emojis
This commit is contained in:
parent
a79e2cbaba
commit
0b7f33849a
5 changed files with 42 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
import * as pictograph from 'pictograph';
|
||||
import * as emojilib from 'emojilib';
|
||||
import { url } from '../../../config';
|
||||
import MkUrl from './url.vue';
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ export default Vue.component('mk-post-html', {
|
|||
return createElement('code', token.html);
|
||||
|
||||
case 'emoji':
|
||||
return createElement('span', pictograph.dic[token.emoji] || token.content);
|
||||
return createElement('span', emojilib.lib[token.emoji] || token.content);
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue