4 #inputname=${infile%%.*}
9 echo "# ${inPath} " > "${inPath}.md"
11 find "./$inPath" -type f
-exec bash
-c '
14 filename=$(basename -- "$item")
15 newname="./work/'${inPath}'.$filename"
16 if [[ ! -e "$newname" ]]; then
17 convert "$item" -colors 128 -type Palette -set units PixelsPerInch -density 315 "$newname"
22 find "./work" -type f
-name "${inPath}.*" -print0 |
sort -z |
xargs -r0 -I{} echo '![]('{}') ' >> "${inPath}.md"
23 pandoc
-f markdown
-t docx
"${inPath}.md" -o "${inPath}.docx"