Skip to content

Commit

Permalink
fix katex rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarlopernudisegura committed Oct 16, 2024
1 parent f7b72ee commit 799cfec
Show file tree
Hide file tree
Showing 9 changed files with 2,437 additions and 5,647 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

# astro
.astro
19 changes: 10 additions & 9 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import compress from 'astro-compress'
import compressor from 'astro-compressor'
import { defineConfig } from 'astro/config'
import purgecss from 'astro-purgecss'
import sitemap from "@astrojs/sitemap"
import sitemap from '@astrojs/sitemap'
import vue from '@astrojs/vue'
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math'
import rehypeKatex from 'rehype-katex'
import mdx from '@astrojs/mdx'

// https://astro.build/config
export default defineConfig({
Expand All @@ -16,12 +17,12 @@ export default defineConfig({
sitemap(),
purgecss({ safelist: [/^.fc/, '#calendar'] }),
compress(),
compressor()
compressor(),
mdx({
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
}),
],
site: "https://uais.dev",
site: 'https://uais.dev',
output: 'static',
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex]
}
});
Loading

0 comments on commit 799cfec

Please sign in to comment.