--- const { headings } = Astro.props; // 仅提取 h2 和 h3 作为目录 const toc = headings.filter((h: any) => h.depth === 2 || h.depth === 3); ---