Files: 1ed42bd9f36becb191c331ca40892cc3262c8e08 / modules / post.js
356 bytesRaw
1 | var markdown = require('ssb-markdown') |
2 | var h = require('hyperscript') |
3 | |
4 | //render a message |
5 | |
6 | exports.message_content = function (data, sbot) { |
7 | if(data.value.content && data.value.content.text) { |
8 | var d = h('div'/*, data.value.root ? */) |
9 | d.innerHTML = |
10 | markdown.block(data.value.content.text, data.value.content.mentions) |
11 | return d |
12 | } |
13 | } |
14 | |
15 | |
16 | |
17 | |
18 |
Built with git-ssb-web