import {marked} from 'marked'; export const renderer = new marked.Renderer(); renderer.image = (href: string | null, title: string | null, _text: string) => { 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: string | null, _title: string | null, text: string) => { return `${text}`; };