Skip to content

Commit

Permalink
feat: math rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Apr 10, 2024
1 parent c471fd5 commit c6b944c
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 1 deletion.
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import remarkMath from "remark-math";
import rehypeMathjax from "rehype-mathjax";

export default defineConfig({
site: "https://gerlachsnezka.github.io",
integrations: [mdx(), sitemap(), tailwind()],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
});
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"eslint": "^8.57.0",
"eslint-plugin-astro": "^0.32.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"rehype-mathjax": "^6.0.0",
"remark-math": "^6.0.0",
"sharp": "^0.33.3",
"tailwind-merge": "^2.2.2",
"tailwindcss": "^3.4.1",
Expand Down
Loading

0 comments on commit c6b944c

Please sign in to comment.