1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 05:38:55 +09:00

より良い方法が思いつくまで<i>で代用

This commit is contained in:
syuilo 2017-03-01 14:32:18 +09:00
parent 93149de584
commit 572a38ad67

View File

@ -1,6 +1,6 @@
const riot = require('riot'); const riot = require('riot');
const nyaize = require('nyaize').default; const nyaize = require('nyaize').default;
const emojinize = require('emojinize'); //const emojinize = require('emojinize');
const CONFIG = require('./config'); const CONFIG = require('./config');
const escape = text => const escape = text =>
@ -33,7 +33,8 @@ module.exports = (tokens, shouldBreak) => {
case 'inline-code': case 'inline-code':
return '<code>' + token.html + '</code>'; return '<code>' + token.html + '</code>';
case 'emoji': case 'emoji':
return emojinize.encode(token.content) return '<i>' + token.content + '</i>';
//return emojinize.encode(token.content)
} }
}).join(''); }).join('');