diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-01 14:32:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-01 14:32:18 +0900 |
| commit | 572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99 (patch) | |
| tree | aa050e60f748ae5ece9a56e444c7db09c362d088 /src | |
| parent | [Test] Add a test (diff) | |
| download | sharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.tar.gz sharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.tar.bz2 sharkey-572a38ad67fd3c1e6479ee7db53ff7c0b67f6a99.zip | |
より良い方法が思いつくまで<i>で代用
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/common/scripts/text-compiler.js | 5 |
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(''); |