--- import { readFile } from 'node:fs/promises'; import { join } from 'node:path'; import { marked } from 'marked'; // Import and parse the markdown content const markdownPath = join(process.cwd(), 'src/data/zine.md'); const markdownContent = await readFile(markdownPath, 'utf-8'); // Split content into sections based on ## headers const sections = markdownContent.split(/(?=^## )/m).filter(s => s.trim()); // Extract section titles for the stack TOC const sectionTitles = sections.map(section => { const match = section.match(/^##?\s+(.+)$/m); return match ? match[1] : 'Untitled'; }); // Parse each section const parsedSections = sections.map(section => { return marked.parse(section); }); ---