const html = require('choo/html'); function replaceLinks(str, urls) { let i = -1; const s = str.replace(/([^<]+)<\/a>/g, (m, v) => { i++; return `${v}`; }); return [`
${s}
`]; } module.exports = function(state) { const div = html`
`; return div; };