🍿 Minor Changes
-
#7244
bef3a75dbThanks @bholmesdev! - Remove the auto-generated$entryvariable for Markdoc entries. To access frontmatter as a variable, you can passentry.dataas a prop where you render your content:---import { getEntry } from 'astro:content';const entry = await getEntry('docs', 'why-markdoc');const { Content } = await entry.render();---<Content frontmatter={entry.data} />
🐞 Patch Changes
-
#7187
1efaef6beThanks @bholmesdev! - Add support for syntax highlighting with Shiki. Apply to your Markdoc config using theextendsproperty:markdoc.config.mjs import { defineMarkdocConfig } from '@astrojs/markdoc/config';import shiki from '@astrojs/markdoc/shiki';export default defineMarkdocConfig({extends: [shiki({/** Shiki config options */}),],});Learn more in the
@astrojs/markdocREADME. -
#7209
16b836411Thanks @bholmesdev! - Add a built-in extension for syntax highlighting with Prism. Apply to your Markdoc config using theextendsproperty:markdoc.config.mjs import { defineMarkdocConfig } from '@astrojs/markdoc/config';import prism from '@astrojs/markdoc/prism';export default defineMarkdocConfig({extends: [prism()],});Learn more in the
@astrojs/markdocREADME. -
Updated dependencies [
8b041bf57,6c7df28ab,ee2aca80a,7851f9258,bef3a75db,52af9ad18,f5063d0a0,cf621340b,2bda7fb0b,af3c5a2e2,f2f18b440]:- astro@2.5.6