mathjax close #1436
This commit is contained in:
parent
f4382ad73e
commit
dff452f00f
|
@ -18,6 +18,8 @@ import classNames from 'classnames'
|
||||||
import { CarouselProvider, useCarousel } from './carousel'
|
import { CarouselProvider, useCarousel } from './carousel'
|
||||||
import rehypeSN from '@/lib/rehype-sn'
|
import rehypeSN from '@/lib/rehype-sn'
|
||||||
import Embed from './embed'
|
import Embed from './embed'
|
||||||
|
import remarkMath from 'remark-math'
|
||||||
|
import rehypeMathjax from 'rehype-mathjax'
|
||||||
|
|
||||||
const rehypeSNStyled = () => rehypeSN({
|
const rehypeSNStyled = () => rehypeSN({
|
||||||
stylers: [{
|
stylers: [{
|
||||||
|
@ -31,8 +33,8 @@ const rehypeSNStyled = () => rehypeSN({
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
const remarkPlugins = [gfm]
|
const remarkPlugins = [gfm, remarkMath]
|
||||||
const rehypePlugins = [rehypeSNStyled]
|
const rehypePlugins = [rehypeSNStyled, rehypeMathjax]
|
||||||
|
|
||||||
export function SearchText ({ text }) {
|
export function SearchText ({ text }) {
|
||||||
return (
|
return (
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -85,7 +85,9 @@
|
||||||
"react-twitter-embed": "^4.0.4",
|
"react-twitter-embed": "^4.0.4",
|
||||||
"react-youtube": "^10.1.0",
|
"react-youtube": "^10.1.0",
|
||||||
"recharts": "^2.9.0",
|
"recharts": "^2.9.0",
|
||||||
|
"rehype-mathjax": "^6.0.0",
|
||||||
"remark-gfm": "^4.0.0",
|
"remark-gfm": "^4.0.0",
|
||||||
|
"remark-math": "^6.0.0",
|
||||||
"remove-markdown": "^0.5.0",
|
"remove-markdown": "^0.5.0",
|
||||||
"sass": "^1.69.3",
|
"sass": "^1.69.3",
|
||||||
"serviceworker-storage": "^0.1.0",
|
"serviceworker-storage": "^0.1.0",
|
||||||
|
@ -129,4 +131,4 @@
|
||||||
"@/(.*)": "<rootDir>/$1"
|
"@/(.*)": "<rootDir>/$1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue