This commit is contained in:
Jacky Zhao
2023-08-09 09:18:44 -07:00
parent bf8d63a266
commit 86e41a82de
2 changed files with 12 additions and 10 deletions

View File

@ -112,7 +112,8 @@ export function createFileParser(ctx: BuildCtx, fps: FilePath[]) {
}
}
const clamp = (num: number, min: number, max: number) => Math.min(Math.max(Math.round(num), min), max);
const clamp = (num: number, min: number, max: number) =>
Math.min(Math.max(Math.round(num), min), max)
export async function parseMarkdown(ctx: BuildCtx, fps: FilePath[]): Promise<ProcessedContent[]> {
const { argv } = ctx
const perf = new PerfTimer()