const riot = require('riot');
const nyaize = require('nyaize').default;
const emojinize = require('emojinize');
const CONFIG = require('./config');
const escape = function(text) {
return text
.replace(/>/g, '>')
.replace(/' : ' ');
case 'bold':
return '' + escape(token.bold) + '';
case 'link':
return '
' + token.html + '
';
case 'inline-code':
return '' + token.html + '
';
case 'emoji':
return emojinize.encode(token.content)
}
}).join('');
text = text.replace(//g, '').replace(/<\/code><\/pre>
/g, '
');
if (me && me.data && me.data.nya) {
text = nyaize(text);
}
return text;
}