pandoc:无法识别的选项`lua-filter` pandoc --lua-filter test.lua test.md

时间:2018-11-05 18:01:39

标签: filter pandoc

我解决了这个问题。接受建议“问Ubuntu”的人的建议

gnovice pointed out in a comment

whereis pandoc

它是在安装spyder时由conda安装的。

conda update pandoc

$ pandoc --lua-filter wordcount.lua resume.md
1112 words in body

我才刚刚开始写过滤器来处理我的简历。不幸 似乎完全是pandoc教程中列出的命令 对我不起作用。 https://askubuntu.com/questions/1084723/issues-installing-pandoc-2-3-1-in-ubuntu-18-04-1 我一定很想念东西。

代码是

$ pandoc --lua-filter wordcount.lua resume.md

pandoc: unrecognized option `--lua-filter'
Try pandoc --help for more information.

这是我的pandoc版本:

$ pandoc --version
    pandoc 1.19.2.1
    Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
    Default user data directory: /home/harlan/.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.

我在注释中接受了以下建议,但并没有更改我的pandoc版本:

harlan@harlan-MS-7976:~/Downloads$ sudo apt-get install -f ./pandoc-2.4-1-amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'pandoc' instead of './pandoc-2.4-1-amd64.deb'
The following NEW packages will be installed:
  pandoc
0 upgraded, 1 newly installed, 0 to remove and 301 not upgraded.
Need to get 0 B/17.0 MB of archives.
After this operation, 133 MB of additional disk space will be used.
Get:1 /home/harlan/Downloads/pandoc-2.4-1-amd64.deb pandoc amd64 2.4-1 [17.0 MB]
Selecting previously unselected package pandoc.
(Reading database ... 407228 files and directories currently installed.)
Preparing to unpack .../pandoc-2.4-1-amd64.deb ...
Unpacking pandoc (2.4-1) ...
Setting up pandoc (2.4-1) ...
harlan@harlan-MS-7976:~/Downloads$ pandoc --version
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: /home/harlan/.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.

0 个答案:

没有答案