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

Failed to render latex #49

Closed
liuslevis opened this issue Dec 31, 2017 · 3 comments
Closed

Failed to render latex #49

liuslevis opened this issue Dec 31, 2017 · 3 comments

Comments

@liuslevis
Copy link

npm install hexo-cli -g
hexo init blog
cd blog
npm install
cd blog
npm install hexo-math --save
# add some latex to hello-world.md
hexo g
hexo s

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.4.4"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-inject": "^1.0.0",
    "hexo-math": "^3.0.4",
    "hexo-renderer-ejs": "^0.3.0",
    "hexo-renderer-marked": "^0.3.0",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0"
  }
}
@liwt31
Copy link

liwt31 commented Jan 18, 2018

I met a similar problem. Though I gave up using hexo-math in the end, I tried to figure out what happened and these are my suggestions:

  • Check if mathjax source url is correctly configured. The default one is down. See MathJax CDN shutted down #41.
  • Check if you have used something like $a+b=c$ to insert LaTeX. For me it doesn't work, but $$a+b=c$$ or \\(a+b=c\\) will do.

@stevenjoezhang
Copy link
Member

This plugin is being remade. There is a discussion about it: #130
I'm closing this issue. Please join the discussion there :)

@curbengh
Copy link
Contributor

curbengh commented Aug 11, 2020

Hey everyone, I am rewriting hexo-math atm (#130). It's ready for testing, just install it by $ npm install hexo-math@curbengh/hexo-math#overhaul. If there is no issue, I plan to release it on this weekend. Temporary usage guide is here (readme.md).

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

4 participants