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
How to config it to make it work? #26
Comments
Normally you don't need to add anything in your Remove all your configuration will fix your problem. |
Now I have removed the configuration, but it still does not work. Do I need to do other else work after |
What's the generated HTML looks like? |
And also your site's |
The
Do I need add
in |
Try run |
It still does not works. |
What's the generated HTML looks like? |
You can view its source at : http://chenzhongpu.github.io/2016/04/05/assert%E6%98%AF%E4%B8%AA%E5%AE%8F/ |
Currently, the
|
It seems to be a compatibility issue between |
With the same problem |
Can I switch to other renderers if |
@ziyuang Sure. |
@akfish I am using the default landscape theme. It looks to me that it uses EJS not Jade since all files under My
and the
I notice in the generated HTML file there is |
OK, after clearing the whole
This is not happening in inline mode. |
@ziyuang You will have to escape special characters with |
This plugin repeatedly failed for me, no matter what I did to |
@fusion809 looks good
Appears to work. Thanks! |
i have this problem too |
Encountering the same here. |
3rd edit there is a new problem that is 2nd eidt finally i got it!!! which means that there is no source files named "custom_mathjax_source" in local
1st edit this problem bothered me few days, who can help me |
the following config in math:
engine: 'mathjax' # or 'katex'
mathjax:
src: "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
config:
# MathJax config
katex:
css: #custom_css_source
js: #custom_js_source # not used
config:
# KaTeX config set |
i have this problem too.but now it works. var DEFAULT_OPTS = exports.DEFAULT_OPTS = {
engine: 'mathjax',
mathjax: {
src: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js",
config: {
tex2jax: {
inlineMath: [['$', '$'], ["\\(", "\\)"]],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
processEscapes: true
},
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
}
}
},
katex: {
css: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css",
js: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js",
config: {
throwOnError: false,
errorColor: "#cc0000"
}
}
}; modify `mathjax/src' var DEFAULT_OPTS = exports.DEFAULT_OPTS = {
engine: 'mathjax',
mathjax: {
src: "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
config: {
tex2jax: {
inlineMath: [['$', '$'], ["\\(", "\\)"]],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
processEscapes: true
},
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
}
}
},
katex: {
css: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css",
js: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js",
config: {
throwOnError: false,
errorColor: "#cc0000"
}
}
}; now it works. |
Close as many solutions have provided. |
This plugin can work in the theme NexT, but cannot work in any other themes. No matter what I do in _config.yml or change the markdowm enging. Thinks to @fusion809 I add the plugin
Then, it will work. Notice: DONOT uninstall |
I think the hexo-renderer-mathjax is a better choise. |
$ npm install hexo-tag-aplayer@3.0
|
After installing it, I just add the followings to
_config.xml
When I run it:
However, the
Simple inline $a = b + c$.
is not displayed in math format.Do I config it correctly?
The text was updated successfully, but these errors were encountered: