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 `
`;
}
list(token) {
return ``;
}
hr() {
return ``;
}
})(),
});
return jsxslack([`${rendered}`]);
};