7972561808
- 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
24 lines
512 B
JavaScript
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',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
})
|