import {marked} from 'marked'; export const renderer = new marked.Renderer(); renderer.image = ({href, title}) => { let classes = 'doc-tutorial-popup-thumbnail'; const hash = href?.split('#')?.[1]; if (hash) { const extraClass = `doc-tutorial-popup-thumbnail-${hash}`; classes += ` ${extraClass}`; } return `
`; }; renderer.link = ({href, text}) => { return `${text}`; };