dazzle/mdsvex.config.js

19 lines
474 B
JavaScript
Raw Normal View History

2025-04-30 18:15:19 +03:30
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex-svelte';
import rehypeMermaid from 'rehype-mermaid'; // Import rehype-mermaid
const config = defineConfig({
extensions: ['.md', '.svx'],
layout: "./src/routes/articles/Layout.svelte",
smartypants: {
dashes: 'oldschool'
},
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex, rehypeMermaid]
});
export default config;