Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Mathjax的配置? #872

Open
foxfire881 opened this issue Aug 14, 2024 · 1 comment
Open

关于Mathjax的配置? #872

foxfire881 opened this issue Aug 14, 2024 · 1 comment

Comments

@foxfire881
Copy link

foxfire881 commented Aug 14, 2024

公式解析引擎配置引用的是外部CDN地址,内网环境访问不了外网,直接把整个mathjax包npm下载回来放在内网静态资源服务器上感觉有点傻,能否用 import 组件的形式引入?如何实现呢?

mathBlock: {
        engine: "MathJax", // katex或MathJax
        src: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"
        plugins: true, // 默认加载插件
      },
      inlineMath: {
        engine: "MathJax", // katex或MathJax
        src: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"
      }
@foxfire881
Copy link
Author

foxfire881 commented Aug 15, 2024

目前是把整个包下载回内网放在static服务器上,可以正常工作,但是感觉应该还能优化下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant