Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
1234567891011121314import { isMarkdownFile } from "./format";import type { MarkupContext } from "./paths";
export const renderDocument = async ( filename: string, contents: string, ctx: MarkupContext): Promise<string | null> => { if (!isMarkdownFile(filename)) return null; const { SOURCE_LIMIT, renderMarkdown } = await import("./markdown"); if (contents.length > SOURCE_LIMIT) return null; return renderMarkdown(contents, ctx);};