-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Suggestion to modify the mathjax code [solved] #19
Comments
no... i understand how to pull request, but i don't known how to debug in |
So, can u step by step write how and where you do changes? And i'll try to do this. |
i will do my best...I'm just a layman in JS. |
Ok, can u give the path to |
|
Ok, i see now. I just not understand what is |
i still have no clue and have given up trying it... |
Please, try to change in NexT config (latest commit on this changes here): # MathJax Support
mathjax:
enable: false
per_page: false
- cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML
+ cdn: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML And of course disable Still need modify @sli1989 if issue still exists, please:
If u want see bugfix, i at least must to reproce it. But i don't understand this math things. |
it works, thank u.
|
@sli1989 really? Works in 2 variant suggested by u, right? |
yes, testing in NexT.Muse v6.0.0, there is no need to modify the |
So, this issue is solved? |
yes, it's done. thank u. |
Links on MathJax CDN in config was updated: (be3528f) # MathJax Support
mathjax:
enable: false
per_page: false
# For newMathJax CDN (cdnjs.cloudflare.com) with fallback to oldMathJax (cdn.mathjax.org).
cdn: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
# For direct link to MathJax.js with CloudFlare CDN (cdnjs.cloudflare.com).
#cdn: //cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML
# For automatic detect latest varsion link to MathJax.js and get from CloudFlare.
#cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML |
😲, suggest to use The MathJax CDN hosted at cdn.mathjax.org will be shutting down on April 30, 2017. |
I suggest:
|
it's not working with |
Ok. Well, need to add local libs with separated repos. I'll do it later, after 6.0.1 release, i think. |
I agree and want to create new issue
Expected behavior
display inline formula using
hexo-renderer-pandoc
with the mathjax support in the theme's_config.yml
.Actual behavior
hexo-renderer-marked
, andmathjax: enable: true
in the theme's_config.yml
:fail to display all formula;
mathjax: enable: true
in the theme's_config.yml
, andnpm uninstall hexo-renderer-marked --save
and Removethe if(config.template) args.push("--template=" + config.template);
inhexo\node_modules\hexo-renderer-pandoc\index.js
usingnpm install hexo-renderer-pandoc --save
(the known issue):fail to display all formula;
mathjax: enable: true
in the theme's_config.yml
, andnpm uninstall hexo-renderer-marked --save
and Removethe if(config.template) args.push("--template=" + config.template);
inindex.js
usingnpm install hexo-renderer-pandoc --save
, and try to modify mathjax in/themes/next/source/js/custom.js
, and add<script type="text/javascript" src="/js/custom.js"></script>
in front of/body
in/layout/_layout.swig
:display inline formula successfully.
the modify in
/themes/next/source/js/custom.js
is here,but i don't known how to merge the code in layout/_third-party/mathjax.swig, just a suggestion
NexT Information
NexT Version:
NexT Scheme:
The text was updated successfully, but these errors were encountered: