Closed TITC closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
did u install the pandoc?
Thanks for your reply
as my question described, pandoc-2.9.2.1 already installed in my laptop.
Mathjax : pandoc exited with code null (pandoc-2.9.2.1 already installed in my laptop)
did u install the pandoc?
PS C:\Users\yuhang.tao> pandoc --version
pandoc.exe 2.9.2.1
Compiled with pandoc-types 1.20, texmath 0.12.0.1, skylighting 0.8.3.2
Default user data directory: C:\Users\yuhang.tao\AppData\Roaming\pandoc
Copyright (C) 2006-2020 John MacFarlane
Web: https://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
NexT Configuration I haven't change anything, just init it.
how about enable this? https://github.com/theme-next/hexo-theme-next/blob/ca19a9d82dba6521ee7b9cb2befda51c6a1bd063/_config.yml#L503
Now I reproduce it again
hexo init test
cd test
git clone https://github.com/theme-next/hexo-theme-next themes/next
npm un hexo-renderer-marked
npm i hexo-renderer-pandoc
then change the theme value to next
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
and change the mathjax option in NexT configure file
# Math Formulas Render Support
math:
# Default (true) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in Front-matter.
# If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.
per_page: true
# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
mathjax:
enable: true
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem: false
last
hexo server
and git bash output below
yuhang.tao@Elf MINGW64 ~/test
$ hexo server
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error:
[ERROR][hexo-renderer-pandoc] On G:\Users\yuhang.tao\Documents\GitHub\test\source\_posts\hello-world.md
[ERROR][hexo-renderer-pandoc] pandoc exited with code null.
at Hexo.pandocRenderer (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\hexo-renderer-pandoc\index.js:114:11)
at Hexo.tryCatcher (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\method.js:15:34)
at G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\hexo\lib\hexo\render.js:75:22
at tryCatcher (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
NexT Configuration I haven't change anything, just init it.
how about enable this?
Appendix:
here is another user who encountered similar problem mathjax problem but he choose just not use it.
maybe you can reproduce it just in a few minutes, as I think.
i have no idea about this. i am a pandoc user, it works fine. waiting for other's help.
any attemps more?
following your previous advice, waiting for other's help
the problem still exists in my case and some others finisky.blog
well, maybe reinit and uninstal and install. wish
my issue described scene already starts from scratch ...
I run into a similar issue while building a Github Action for deployment, the issue turned out to be the Docker image for the action doesn't have pandoc
installed.
That said, I have walked through your issue description and have tried to reproduce it:
hexo init test && cd test
git clone https://github.com/theme-next/hexo-theme-next themes/next
# enable the mathjax within /theme/next/_config.yml
hexo s
and everything looks good. At this point, the only problem I could think of is the distribution of pandoc
might be different between Windows and macOS/Linux. Posting the versions on my box here in case it helps:
➜ test npm list | grep hexo
hexo-site@0.0.0 /Users/***/***/playground/test
├─┬ hexo@4.2.0
│ ├─┬ hexo-cli@3.1.0
│ │ ├── hexo-fs@2.0.0 deduped
│ │ ├── hexo-log@1.0.0 deduped
│ │ ├── hexo-util@1.9.0 deduped
│ ├─┬ hexo-front-matter@1.0.0
│ ├─┬ hexo-fs@2.0.0
│ ├─┬ hexo-i18n@1.0.0
│ ├─┬ hexo-log@1.0.0
│ │ └─┬ hexo-bunyan@2.0.0
│ ├─┬ hexo-util@1.9.0
├─┬ hexo-generator-archive@1.0.0
│ └── hexo-pagination@1.0.0
├─┬ hexo-generator-category@1.0.0
│ └── hexo-pagination@1.0.0 deduped
├─┬ hexo-generator-index@1.0.0
│ └── hexo-pagination@1.0.0 deduped
├─┬ hexo-generator-tag@1.0.0
│ └── hexo-pagination@1.0.0 deduped
├─┬ hexo-renderer-ejs@1.0.0
├── hexo-renderer-pandoc@0.3.0
├─┬ hexo-renderer-stylus@1.1.0
└─┬ hexo-server@1.0.0
and
➜ test brew info pandoc
pandoc: stable 2.9.2.1 (bottled), HEAD
Swiss-army knife of markup format conversion
https://pandoc.org/
/usr/local/Cellar/pandoc/2.9.2.1 (183 files, 102.8MB) *
Poured from bottle on 2020-04-19 at 22:32:44
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pandoc.rb
==> Dependencies
Build: cabal-install ✘, ghc ✘
==> Options
--HEAD
Install HEAD version
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Analytics
install: 23,091 (30 days), 83,850 (90 days), 273,914 (365 days)
install-on-request: 15,650 (30 days), 58,280 (90 days), 193,445 (365 days)
build-error: 0 (30 days)
For me, I solved this issue via the following way: go to https://github.com/jgm/pandoc/releases/tag/2.9.2.1, download the newest version. For me, I used the pandoc 2.9.2.1.deb for my ubuntu 18.04 system, then install it:
sudo dpkg -i pandoc.deb
after that, when I run:
hexo clean && hexo g && hexo s
everything works fine.
GitHubUniversal markup converter. Contribute to jgm/pandoc development by creating an account on GitHub.
For me, I solved this issue via the following way: go to https://github.com/jgm/pandoc/releases/tag/2.9.2.1, download the newest version. For me, I used the pandoc 2.9.2.1.deb for my ubuntu 18.04 system, then install it:
sudo dpkg -i pandoc.deb
after that, when I run:
hexo clean && hexo g && hexo s
everything works fine.
GitHubjgm/pandocUniversal markup converter. Contribute to jgm/pandoc development by creating an account on GitHub.
Thanks, I will have a try.
GitHubUniversal markup converter. Contribute to jgm/pandoc development by creating an account on GitHub.
maybe you should install pandoc in your PC, then restart your PC.
you can try markdown-it-latex2img
I got the same question in my hexo+next+travis.ci. You can try to install the latest pandoc as below.
before_script:
- wget https://github.com/jgm/pandoc/releases/download/2.10.1/pandoc-2.10.1-1-amd64.deb
- sudo dpkg -i pandoc-2.10.1-1-amd64.deb
- npm install hexo-renderer-pandoc --save # for mathjax
- npm install
This works for me. Because hexo-renderer-pandoc is based on pandoc, so pandoc should be installed in advance.
I got the same question in my hexo+next+travis.ci. You can try to install the latest pandoc as below.
before_script: - wget https://github.com/jgm/pandoc/releases/download/2.10.1/pandoc-2.10.1-1-amd64.deb - sudo dpkg -i pandoc-2.10.1-1-amd64.deb - npm install hexo-renderer-pandoc --save # for mathjax - npm install
This works for me. Because hexo-renderer-pandoc is based on pandoc, so pandoc should be installed in advance.
slow download speed
I had the same problem. I solved the problem by pressing pandoc
我出现了同样的问题,我使用的WSL,在Windows上装的pandoc,不管用。 最终的解决方法是,在WSL(Ubuntu 20.04)中,'sudo apt-get install pandoc'
I have the same problem. Here is some differences with Windows 10 and WSL. So my last solution is: 'sudo apt-get install pandoc' (WSL, Ubuntu 20.04)
谢谢,我会尽快查收
the Docker image for the action doesn't have
pandoc
installed.
Thanks. I'm troubled in the same problem with yours. Now that I see "the Docker image for the action doesn't have pandoc installed", how could I solve the problem?
谢谢,我会尽快查收
close this issue, after 2years later, I followed the steps list before and everything is fine.
Feel free to reopen if the issue persists
I have the same problem in Windows 10. And after run npm install
in workspace everything works fine.
谢谢,我会尽快查收
谢谢,我会尽快查收
I try just use npm install hexo-renderer-marked
then not need to use npm install hexo-renderer-pandoc
, and modify the NexT theme _config.yml :
math: per_page: true enable: true mathjax: enable: true
that wiil be fixed
Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
the server will start successfully when I run hexo server command
Actual behavior
Steps to reproduce the behavior
1.
change the hexo configure file theme's value to next
open hello-wold.md,then plus Ctrl+S
Unhandled rejection Error: [ERROR][hexo-renderer-pandoc] On G:\Users\yuhang.tao\Documents\GitHub\test\source_posts\hello-world.md [ERROR][hexo-renderer-pandoc] pandoc exited with code null. at Hexo.pandocRenderer (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\hexo-renderer-pandoc\index.js:114:11) at Hexo.tryCatcher (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\util.js:16:23) at Hexo. (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\method.js:15:34)
at G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\hexo\lib\hexo\render.js:75:22
at tryCatcher (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (G:\Users\yuhang.tao\Documents\GitHub\test\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
$ node -v && npm -v v12.16.1 6.13.4
$ npm ls --depth 0 hexo-site@0.0.0 G:\Users\yuhang.tao\Documents\GitHub\test +-- hexo@4.2.0 +-- hexo-generator-archive@1.0.0 +-- hexo-generator-category@1.0.0 +-- hexo-generator-index@1.0.0 +-- hexo-generator-tag@1.0.0 +-- hexo-renderer-ejs@1.0.0 +-- hexo-renderer-pandoc@0.3.0 +-- hexo-renderer-stylus@1.1.0 `-- hexo-server@1.0.0
NexT Configuration
Errata
Other Information