Minor Changes
-
#7244
bef3a75db
Thanks @bholmesdev! - Remove the auto-generated$entry
variable for Markdoc entries. To access frontmatter as a variable, you can passentry.data
as 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
1efaef6be
Thanks @bholmesdev! - Add support for syntax highlighting with Shiki. Apply to your Markdoc config using theextends
property:// 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/markdoc
README. -
#7209
16b836411
Thanks @bholmesdev! - Add a built-in extension for syntax highlighting with Prism. Apply to your Markdoc config using theextends
property:// 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/markdoc
README. -
Updated dependencies [
8b041bf57
,6c7df28ab
,ee2aca80a
,7851f9258
,bef3a75db
,52af9ad18
,f5063d0a0
,cf621340b
,2bda7fb0b
,af3c5a2e2
,f2f18b440
]:- astro@2.5.6