diff --git a/astro.config.mjs b/astro.config.mjs index 508cbec..c915832 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,16 @@ -// @ts-check import { defineConfig } from 'astro/config'; +import tailwind from '@astrojs/tailwind'; +import remarkMath from 'remark-math'; +import rehypeKatex from 'rehype-katex'; +import rehypePrettyCode from 'rehype-pretty-code'; -import tailwindcss from '@tailwindcss/vite'; - -// https://astro.build/config export default defineConfig({ - vite: { - plugins: [tailwindcss()] - } -}); \ No newline at end of file + integrations: [tailwind()], + markdown: { + remarkPlugins: [remarkMath], + rehypePlugins: [ + rehypeKatex, + [rehypePrettyCode, { theme: 'github-dark' }] + ] + } +});