const html = require('choo/html'); const raw = require('choo/html/raw'); 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; };