Comments (16)
补充一个手动安装pandoc最新版的方式(对于Ubuntu):
- 卸载原本的
sudo apt remove pandoc
- 在任意目录下下载
wget https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-amd64.deb
- 手动安装
sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
hi, could you check your pandoc version so i can reproduce your issue? also does using version above 2.0 fixes your issue?
…
---Original--- From: "Broduker"<[email protected]> Date: Mon, Nov 18, 2019 11:55 AM To: "wzpan/hexo-renderer-pandoc"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: [wzpan/hexo-renderer-pandoc] hexo s error (#36) when use hexo s, something was wrong [ERROR][hexo-renderer-pandoc] pandoc exited with code 9: pandoc: Unknown extension: smart Some people on the Internet said that it may be related to Pandoc's smart parameter, which is in the node_modules\hexo-renderer-pandoc\index.js file. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
pandoc version pandoc-2.7.3-windows-x86_64
from hexo-renderer-pandoc.
发现作者是**人,那我就用中文仔细陈述一遍吧。
我就是按照步骤先从官网下载了pandoc-2.7.3-windows-x86_64
,并进行了安装
然后按照说明卸载原有的渲染器 hexo-renderer-marked
,并安装了hexo-renderer-pandoc
uninstall hexo-renderer-marked
install hexo-renderer-pandoc
然后在 next/_config.yml
中将 mathjax
的 enable
值设为true
。
但是运行hexo s
出现如上所述错误。上网查阅发现有人可能遇到了相似的问题,给出的解决办法为
将node_modules\hexo-renderer-pandoc\index.js
中的
var args = [ '-f', 'markdown-smart'+extensions, '-t', 'html-smart', math]
改成
var args = [ '-f', 'markdown'+extensions, '-t', 'html', math]
修改后确实没有报错,参考的文章Hexo 搭建个人博客指南
from hexo-renderer-pandoc.
hexo版本是4.0.0
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
@Broduker 您好,我尝试使用以下命令
<...>\pandoc-2.7.3-windows-x86_64\pandoc.exe -f markdown-smart -t html-smart source\_posts\hello-world.md
渲染成功没有报错。
可否再次确认你使用的 pandoc 版本?尤其是你安装的版本是否是命令行中搜索到的那个?请于回复中附上运行命令 pandoc -v
的结果。另外也请附上 _config.yml
以及 package.json
.
from hexo-renderer-pandoc.
哦,好像真是版本的问题,在git bash中查看版本的结果如下,跟我单独安装的版本确实不一样
$ pandoc -v
pandoc.exe 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: C:\Users\shens\AppData\Roaming\pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://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.
这是我在安装hexo默认已经下载的吗,或者什么其他软件,之前确实没有单独下载过。那这样的话怎么替换这个版本呢
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
好的,我尝试改改
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
好的,多谢
from hexo-renderer-pandoc.
from hexo-renderer-pandoc.
ok
from hexo-renderer-pandoc.
找到了pandoc 1.19.2.1的来源,是anaconda3中集成的,卸载或升级包版本后问题解决,不过部分镜像源没有2.0以上版本,需要手动查找。
感谢答主,那我就把issue关了
from hexo-renderer-pandoc.
Related Issues (20)
- 嵌套的tag渲染错误 HOT 4
- Is it possible to render external package? HOT 1
- Why it's <embed> instead of <img> tag? HOT 5
- The task list or todo list cannot be rendered correctly HOT 2
- 关于新版本pandoc中citeproc模块的处理 HOT 10
- about env of pandoc HOT 3
- 多级列表转换异常 HOT 3
- '\oiint' could not show HOT 2
- Lua-filter support HOT 1
- How to preserve tabs in code blocks? HOT 8
- 📢 This repo has been transfered to hexojs organization HOT 8
- `hexo-renderer-pandoc` with `hexo-generator-feed` produces HTML generation errors | `hexo-renderer-pandoc` 搭配 `hexo-generator-feed` 会出现 HTML 生成错误 HOT 2
- Can I set the resource root path? HOT 1
- 回车换行不起作用 HOT 3
- New interface to specify arguments to pandoc
- Unexpected Changes in Article Headerlink and Missing Headerlink Icon HOT 7
- Error handling tag id assignment through pandoc syntax HOT 2
- How to escape dollar signs? HOT 8
- pandoc 不支持 GFM 格式,转换成 html 失去 [!TIP] 等提示框 HOT 15
- pandoc 渲染 GFM 格式,转换成 html 显示不太正确 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-renderer-pandoc.