--- import { renderContent } from "astro-i18n"; import MetaDate from "./MetaDate.astro"; import TOC from "./TOC.astro"; const { content } = Astro.props; // const { Content, headings } = await content.render(); const { html, headings } = await renderContent(Astro, content); const toc = headings.map((heading) => { return heading; }); if (content.data.code) { import "../styles/vendor/one-dark-pro.css"; } ---