Files
website/node_modules/@astropub/md/lib/integration.js
2024-05-06 17:15:30 -04:00

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 */