mirror of
https://github.com/sern-handler/website
synced 2026-06-16 04:42:26 +00:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
import { shared } from './shared.js'
|
|
|
|
export function mdAstro() {
|
|
const integration = /** @type {AstroIntegration} */ ({
|
|
name: 'astro:md',
|
|
hooks: {
|
|
'astro:config:done'({ config }) {
|
|
shared.markdownConfig = config.markdown
|
|
},
|
|
},
|
|
})
|
|
|
|
return integration
|
|
}
|
|
|
|
/** @typedef {import('astro').AstroIntegration} AstroIntegration */
|
|
/** @typedef {import('vite').Plugin} Plugin */
|