pandoc怎么批量把html转markdown?

这样是可以的

pandoc index_split_002.html -o index_split_002.markdown

但是怎么批量转呢?

试了下

pandoc *.html -o *.markdown

并不行 求指点!

阅读 5.4k
1 个回答
for i in `ls -al *.html`;do
    pandoc ${i} -o ${i}.md
done
推荐问题