Pandoc:如何在WINDOWS中以特定顺序连接多个markdown文件

问题描述 投票:0回答:1

我可以使用includes.txt文件在LINUX中轻松地做到这一点:

pandoc -s $(cat includes.txt) -o index.html

其中include.txt包含:

file1.md
file3.md
file2.md

但是,我现在必须在WINDOWS中做同样的事情,并且不能(因为我是Windows新手)无法弄清楚如何以include.txt文件中指定的顺序连接Markdown文件,然后将其传递给Pandoc。任何帮助表示赞赏。

concatenation pandoc
1个回答
0
投票

经过简短的研究,我发现您可以使用Pandoc在Windows环境中进行等效的操作。

使用以下链接下载并安装Pandoc。您应该选择pandoc-2.9.2-windows-x86_64.msi

Pandoc

成功安装Pandoc后,通过运行以下命令打开powershell以检查程序是否已成功安装。

pandoc --version

现在,从原始帖子运行提供的命令将在Windows环境中工作。

pandoc -s $(cat includes.txt) -o index.html
© www.soinside.com 2019 - 2024. All rights reserved.