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 CDN修改 #752

Closed
ghost opened this issue Mar 24, 2016 · 8 comments
Closed

MathJax CDN修改 #752

ghost opened this issue Mar 24, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Mar 24, 2016

这个主题的MathJax在中文语言下使用的mathjax版本比较老,我今天用的时候发现在chrome下测试出现在mathjax的公式后面出现了一条竖线。
我因此将mathjax的CDN从staticFILE修改成了bootCDN提供的文件,作者看看是不是能改一下。

@iissnan
Copy link
Owner

iissnan commented Mar 24, 2016

多谢反馈。我看了下 MathJax 官网也有提供一个 CDN 版本,我在想干脆增加一个配置 cdn 的选项,可以自己配置需要使用的 cdn,默认官方提供的 版本:

mathjax:
  enable: true
  cdn: https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML

你自己可以先那么改,这个预计会在下一个版本里(5.0.1)

@ghost
Copy link
Author

ghost commented Mar 24, 2016

OK!

@habren
Copy link

habren commented Mar 31, 2016

@iissnan MathJax加载比较慢,而且很多post是不用公式的(也有部分使用,所以全局开关必须打开)。所以我在本地的优化是,可以在post里也设置这个属性,如果为true,则当前Post加载mathjax,否则其它页面都不加载。改天提交一个Pull Request

@iissnan
Copy link
Owner

iissnan commented Mar 31, 2016

@habren OK。默认 enable 是 false

iissnan added a commit that referenced this issue Apr 3, 2016
@iissnan iissnan removed the Docs label May 9, 2016
@iissnan
Copy link
Owner

iissnan commented May 12, 2016

See: MathJax

@iissnan iissnan closed this as completed May 12, 2016
habren pushed a commit to habren/hexo-theme-next that referenced this issue Apr 8, 2017
@shijiebei2009
Copy link

发现
WARNING: cdn.mathjax.org has been retired. Check https://www.mathjax.org/cdn-shutting-down/ for migration tips.
replaceScript @ cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:32
cdn是关闭了吗??

@xmeng1
Copy link

xmeng1 commented Jan 21, 2018

@shijiebei2009 https://www.mathjax.org/cdn-shutting-down/
按照官方的 migration suggestion,我换成这个了
cdn: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML

现在控制台没有错误了

@ivan-nginx
Copy link
Collaborator

@xmeng1 @shijiebei2009 @habren added katex support and totally refactored mathjax in 6.0.2 version.


NexT is rebased into organization repo.
If you want new feature, please, create new in NexT v6.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.0.x

You also may read this for details.

Repository owner locked as resolved and limited conversation to collaborators Jan 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants