git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: b2886f60b5b31141643c0ea134c62b9e8e0db8e2

Files: b2886f60b5b31141643c0ea134c62b9e8e0db8e2 / modules / post.js

342 bytesRaw
1var h = require('hyperscript')
2var plugs = require('patchbay/plugs')
3var message_link = plugs.first(exports.message_link = [])
4var markdown = plugs.first(exports.markdown = [])
5
6exports.message_content = function (data) {
7 if(!data.value.content || !data.value.content.text) return
8
9 return h('div',
10 markdown(data.value.content)
11 )
12
13}
14

Built with git-ssb-web