diff --git a/package.json b/package.json index 29e4882..bad936b 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "react-head": "^3.4.0", "react-syntax-highlighter": "^15.5.0", "rehype-slug": "^5.0.1", + "remark-gfm": "^3.0.1", "rollup": "^2.77.2", "tropical-islands": "^2.0.0", "tropical-scaffold": "^2.0.0", diff --git a/vite.config.js b/vite.config.js index 202e21f..414d1bf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,12 +2,17 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import mdx from '@mdx-js/rollup' import rehypeSlug from 'rehype-slug' +import remarkGfm from 'remark-gfm' import imagePresetsPlugin from 'vite-plugin-image-presets' import imagePresetsConfig from './src/imagePresets' export const plugins = [ react(), - mdx({ rehypePlugins: [rehypeSlug], providerImportSource: '@mdx-js/react' }), + mdx({ + rehypePlugins: [rehypeSlug], + remarkPlugins: [remarkGfm], + providerImportSource: '@mdx-js/react' + }), imagePresetsPlugin(imagePresetsConfig) ]