Skip to content

Commit 2819336

Browse files
committed
added mathjax
1 parent 2687d0a commit 2819336

File tree

4,793 files changed

+558439
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,793 files changed

+558439
-12
lines changed

Diff for: astro.config.mjs

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { defineConfig } from 'astro/config';
2-
2+
import remarkMath from 'remark-math';
3+
import rehypeMathjaxCHTML from 'rehype-mathjax/chtml.js';
34
import preact from "@astrojs/preact";
45

5-
// https://astro.build/config
66
export default defineConfig({
7+
markdown: {
8+
// Applied to .md and .mdx files
9+
remarkPlugins: [remarkMath],
10+
rehypePlugins: [[rehypeMathjaxCHTML, { tex: { tags: "ams" }, chtml: {fontURL: 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2'} }]],
11+
},
12+
// https://astro.build/config
713
integrations: [preact()]
814
});

Diff for: node_modules/.bin/escodegen

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node_modules/.bin/esgenerate

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node_modules/.bin/katex

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node_modules/.bin/sre

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)