Skip to content

Commit c480fbe

Browse files
committed
Add .mdx + embedded Youtube support
1 parent 067fb27 commit c480fbe

File tree

5 files changed

+971
-3
lines changed

5 files changed

+971
-3
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import partytown from '@astrojs/partytown';
44
import remarkMath from 'remark-math';
55
import rehypeKatex from 'rehype-katex';
66

7+
import mdx from '@astrojs/mdx';
8+
79
// https://astro.build/config
810
export default defineConfig({
911
site: 'https://ctrl-vi.github.io',
10-
integrations: [partytown()],
12+
integrations: [partytown(), mdx()],
1113
markdown: {
1214
syntaxHighlight: "prism",
1315
remarkPlugins: [remarkMath],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
"name": "ctrl-vi.github.io",
33
"type": "module",
44
"version": "0.0.1",
5-
"packageManager": "pnpm@10.12.2+sha512.a32540185b964ee30bb4e979e405adc6af59226b438ee4cc19f9e8773667a66d302f5bfee60a39d3cac69e35e4b96e708a71dd002b7e9359c4112a1722ac323f",
5+
"packageManager": "pnpm@10.18.1+sha512.77a884a165cbba2d8d1c19e3b4880eee6d2fcabd0d879121e282196b80042351d5eb3ca0935fa599da1dc51265cc68816ad2bddd2a2de5ea9fdf92adbec7cd34",
66
"scripts": {
77
"dev": "astro dev",
88
"build": "astro build",
99
"preview": "astro check && astro preview",
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13+
"@astrojs/mdx": "^4.3.6",
1314
"@astrojs/partytown": "^2.1.4",
1415
"astro": "^5.10.0",
16+
"astro-embed": "^0.9.1",
1517
"astro-seo": "^0.8.4",
1618
"rehype-katex": "^7.0.1",
1719
"remark-math": "^6.0.0",

0 commit comments

Comments
 (0)