import { highlight } from "./codeHighlighter.js" export const markedRenderer = { // Rendering of headings (add an anchor above all headings). heading(text, level) { return ` ${text} ` }, // Render code properly, and syntax highlight it. code(code, lang, escaped) { return `
                ${highlight(code, lang)}
            
` }, table(header, body) { return ` ${header} ${body}
` } }