import { RenderContext } from '@/types'; import { processDocument } from '@/utils/process-document'; import { defaultShikiFactory } from '@hanzo/docs-core/highlight/shiki/full'; import Slugger from 'github-slugger'; export async function renderContextFrom(input: string): Promise { const schema = await processDocument(input); return { mediaAdapters: {}, generateTypeScriptDefinitions() { return ''; }, shiki: defaultShikiFactory, shikiOptions: { theme: 'github-light' }, renderCodeBlock(_lang, code) { return code; }, clientBoundary: ClientBoundary, renderMarkdown(text) { return text; }, schema, }; }