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
This commit is contained in:
parent
937b87938f
commit
7972561808
@ -10,6 +10,7 @@ export default defineConfig({
|
|||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
theme: 'nord',
|
theme: 'nord',
|
||||||
},
|
},
|
||||||
|
remarkPlugins: ['remark-gfm', 'remark-smartypants'],
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
[
|
[
|
||||||
'rehype-external-links',
|
'rehype-external-links',
|
||||||
|
Loading…
Reference in New Issue
Block a user