Scylla/static/js/markdown.js

10 lines
273 B
JavaScript
Raw Normal View History

2018-12-21 18:52:17 -08:00
function setupMarkdownPorts(app) {
2018-12-20 22:01:09 -08:00
app.ports.requestMarkdownPort.subscribe(function(data) {
app.ports.receiveMarkdownPort.send({
"roomId" : data.roomId,
"text" : data.text,
"markdown" : marked(data.text)
});
})
}