Files: f096230a58e0b7b3a85a61e839a6088a8fe434c2 / modules / post.js
342 bytesRaw
1 | var h = require('hyperscript') |
2 | var plugs = require('patchbay/plugs') |
3 | var message_link = plugs.first(exports.message_link = []) |
4 | var markdown = plugs.first(exports.markdown = []) |
5 | |
6 | exports.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