import DOMPurify from "dompurify"; import { md } from "./markdownIt"; export function markdownAndSanitize(markdown: string | null) { if (!markdown) return ""; const html = md .render(markdown) .replaceAll( "