UNPKG

ferment

Version:

Peer-to-peer audio publishing and streaming application. Like SoundCloud but decentralized. A mashup of ssb, webtorrent and electron.

19 lines (16 loc) 416 B
var md = require('ssb-markdown') var watch = require('@mmckegg/mutant/watch') module.exports = function (value, opts) { return function (element) { return watch(value, (value) => { element.innerHTML = md.block(value, opts) }) } } module.exports.inline = function (value) { return function (element) { return watch(value, (value) => { element.innerHTML = md.inline(value) }) } }