scripts\ingest.ts:
const title = (fm.data && (fm.data.title || fm.data.Title)) || '';
const plain = markdownToPlain(fm.content);
const chunks = chunkText(plain, 800);
It's written like a pile of shit. markdownToPlain converts Markdown format text to plain text, and chunkText splits the text based on the headings in Markdown format???