summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-01 14:32:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-01 14:32:18 +0900
commit572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99 (patch)
treeaa050e60f748ae5ece9a56e444c7db09c362d088 /src/web/app/common/scripts
parent[Test] Add a test (diff)
downloadsharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.tar.gz
sharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.tar.bz2
sharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.zip
より良い方法が思いつくまで<i>で代用
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/text-compiler.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js
index 4a2ca400a9..c53ee4d45a 100644
--- a/src/web/app/common/scripts/text-compiler.js
+++ b/src/web/app/common/scripts/text-compiler.js
@@ -1,6 +1,6 @@
const riot = require('riot');
const nyaize = require('nyaize').default;
-const emojinize = require('emojinize');
+//const emojinize = require('emojinize');
const CONFIG = require('./config');
const escape = text =>
@@ -33,7 +33,8 @@ module.exports = (tokens, shouldBreak) => {
case 'inline-code':
return '<code>' + token.html + '</code>';
case 'emoji':
- return emojinize.encode(token.content)
+ return '<i>' + token.content + '</i>';
+ //return emojinize.encode(token.content)
}
}).join('');