import assert from 'node:assert/strict'; import { test } from 'node:test'; import { escapeHtml } from '../src/render/html.ts'; import { renderMarkdown } from '../src/render/markdown.ts'; const md = (text: string): string => String(renderMarkdown(text)); /** Stands in for the real one, which proxies. Escapes the way that one does: * placing the image is the renderer's job, and so is making it safe. */ const img = (url: string, alt: string): string => `${escapeHtml(alt)}`; const mdi = (text: string): string => String(renderMarkdown(text, img)); test('markup a commenter typed is text, not markup', () => { const out = md(' & "quoted"'); assert.ok(!out.includes('