Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
md.renderer.rules.image = (tokens, idx) => {
const { src, title, alt } = Remarkable.utils.escapeHtml(tokens[idx]);
return getGalleryImage({ href: src, title, text: alt });
};