shawn-reuter-blog/astro.config.mjs
Swapnil Mishra 7972561808 Fix markdown table not rendering issue
- markdown table rendering is broken because of using `rehypePlugins` in astro config.
  This is due to the fact that enabling custom `remarkPlugins` or `rehypePlugins` will remove `remark-gfm`, `remark-smartypants` which are built-in plugins and we need to explicitly add these plugins.
- added `remark-gfm` and `remark-smartypants` to fix this
2022-08-25 16:39:55 +02:00

24 lines
512 B
JavaScript

import { defineConfig } from 'astro/config'
import svelte from '@astrojs/svelte'
import mdx from '@astrojs/mdx'
// https://astro.build/config
export default defineConfig({
site: 'https://astro-blog-template.netlify.app',
integrations: [mdx(), svelte()],
markdown: {
shikiConfig: {
theme: 'nord',
},
remarkPlugins: ['remark-gfm', 'remark-smartypants'],
rehypePlugins: [
[
'rehype-external-links',
{
target: '_blank',
},
],
],
},
})