import { jsxslack } from 'jsx-slack'; import { marked, Renderer } from 'marked'; export const render = markdown => { const rendered = marked(markdown, { renderer: new (class CustomRenderer extends Renderer { heading({ tokens }) { return `
${tokens[0].text}
`; } list(token) { return `
${super.list(token)}
`; } hr() { return ``; } })(), }); return jsxslack([`${rendered}`]); };