Skip to content

Commit

Permalink
Add remark plugins to show math in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
janka102 committed Nov 16, 2024
1 parent 8b08cdb commit 6f504b5
Show file tree
Hide file tree
Showing 3 changed files with 650 additions and 0 deletions.
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import remarkMath from "remark-math";
import rehypeMathJaxSvg from "rehype-mathjax";

// https://astro.build/config
export default defineConfig({
integrations: [react(), tailwind()],
site: "https://dalurness.github.io",
base: "/winter-code-fest/",
trailingSlash: "always",
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathJaxSvg],
},
});
Loading

0 comments on commit 6f504b5

Please sign in to comment.