mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
composer changeS
This commit is contained in:
@@ -63,6 +63,11 @@ SocketModules.composer.editCheck = function(socket, pid, callback) {
|
||||
});
|
||||
};
|
||||
|
||||
SocketModules.composer.renderPreview = function(socket, content, callback) {
|
||||
var preview = require('marked')(content);
|
||||
callback(null, preview);
|
||||
}
|
||||
|
||||
/* Chat */
|
||||
|
||||
SocketModules.chats = {};
|
||||
|
||||
Reference in New Issue
Block a user