Add markdown sending.
This commit is contained in:
9
static/js/markdown.js
Normal file
9
static/js/markdown.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function setupNotificationPorts(app) {
|
||||
app.ports.requestMarkdownPort.subscribe(function(data) {
|
||||
app.ports.receiveMarkdownPort.send({
|
||||
"roomId" : data.roomId,
|
||||
"text" : data.text,
|
||||
"markdown" : marked(data.text)
|
||||
});
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user