mirror of
https://github.com/Phantop/dotfiles
synced 2025-04-02 07:45:45 +00:00
11 lines
324 B
Fish
11 lines
324 B
Fish
|
function reflow
|
||
|
argparse p/pdf -- $argv
|
||
|
parallel mutool convert -O preserve-images -o {.}.xhtml {} ::: $argv
|
||
|
if set -q _flag_pdf
|
||
|
parallel mutool convert -o {.}_reflow.pdf {.}.xhtml ::: $argv
|
||
|
else
|
||
|
parallel pandoc {.}.xhtml -o {.}.epub ::: $argv
|
||
|
end
|
||
|
parallel rm {.}.xhtml ::: $argv
|
||
|
end
|