使用Pandoc批量转换文件格式的方法
思路:
1. 复制目录结构
2. 批量解析md文件转换为adoc
http://asciidoctor.github.io/asciidoctor-gradle-examples/#_html_example
http://asciidoctor.org/docs/asciidoctor-gradle-plugin/
cd books
find ./ -type d -exec mkdir -p ../tgt/\{\} \;
find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -o "../tgt/$(dirname ${0})/$(basename ${0%.md}.adoc)"' {} \;
思路:
1. 复制目录结构
2. 批量解析md文件转换为adoc
http://asciidoctor.github.io/asciidoctor-gradle-examples/#_html_example
http://asciidoctor.org/docs/asciidoctor-gradle-plugin/
本文介绍使用Pandoc工具批量将Markdown文件转换为AsciiDoctor格式的方法。通过shell脚本实现目录结构复制及文件格式转换,适用于需要进行文档格式统一处理的场景。

6582

被折叠的 条评论
为什么被折叠?



