Batch processing Pandoc conversions in Windows

后端 未结 5 860
遥遥无期
遥遥无期 2020-12-10 08:11

I am trying to convert a large number of HTML files into Markdown using Pandoc in Windows, and have found an answer on how to do this on a Mac, but receive errors when attem

5条回答
  •  难免孤独
    2020-12-10 08:54

    Using the powershell built-in gci:

    gci -r -i *.md |foreach{$docx=$_.directoryname+"\"+$_.basename+".docx";pandoc $_.name -o $docx}
    

    from https://github.com/jgm/pandoc/issues/5429

提交回复
热议问题