mathjax close #1436

This commit is contained in:
k00b 2024-10-02 19:52:05 -05:00
parent f4382ad73e
commit dff452f00f
3 changed files with 719 additions and 181 deletions

View File

@ -18,6 +18,8 @@ import classNames from 'classnames'
import { CarouselProvider, useCarousel } from './carousel'
import rehypeSN from '@/lib/rehype-sn'
import Embed from './embed'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
const rehypeSNStyled = () => rehypeSN({
stylers: [{
@ -31,8 +33,8 @@ const rehypeSNStyled = () => rehypeSN({
}]
})
const remarkPlugins = [gfm]
const rehypePlugins = [rehypeSNStyled]
const remarkPlugins = [gfm, remarkMath]
const rehypePlugins = [rehypeSNStyled, rehypeMathjax]
export function SearchText ({ text }) {
return (

890
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -85,7 +85,9 @@
"react-twitter-embed": "^4.0.4",
"react-youtube": "^10.1.0",
"recharts": "^2.9.0",
"rehype-mathjax": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remove-markdown": "^0.5.0",
"sass": "^1.69.3",
"serviceworker-storage": "^0.1.0",