Use epub-metadata option

Use epub-metadata option for pandoc to consume metadata file. The previous option --metadata-fie is probably outdated.
pull/293/head
Chuanyui Teh 2019-06-26 02:58:36 -07:00 committed by GitHub
parent 33431e61a9
commit 452d743ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ generate_from_stdin() {
echo "Generating '$language' ..."
pandoc --metadata-file=epub-metadata.yaml --metadata=lang:$2 --from=markdown -o $1 <&0
pandoc --epub-metadata=epub-metadata.yaml --metadata=lang:$2 --from=markdown -o $1 <&0
echo "Done! You can find the '$language' book at ./$outfile"
}