import type { MarkupContext } from "#lib/markup/paths.ts"; export const loadMarkup = () => import("#lib/markup/render.ts"); export const renderPreview = async ( contents: string, ctx: MarkupContext ): Promise => { const { renderMarkup } = await loadMarkup(); return renderMarkup(contents, ctx); };