--- const { headings } = Astro.props; // H2/H3 seulement const items = (headings || []).filter((h) => h.depth >= 2 && h.depth <= 3); --- {items.length > 0 && ( Dans ce chapitre {items.map((h) => ( {h.text} ))} )}