Created
August 14, 2022 09:17
-
-
Save emisjerry/8b01eeab3db56c49d4f47c05f4ae91a0 to your computer and use it in GitHub Desktop.
Using pandoc to convert Markdown text file into .epub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set _FN=%1 | |
set _FN=%_FN:.txt=% | |
set _FN=%_FN:.md=% | |
set _AUTHOR=未知 | |
if not "%2"=="" ( | |
set _AUTHOR=%2 | |
) | |
pandoc %1 -f markdown --toc --metadata title="%_FN%" --metadata author="%_AUTHOR%" --metadata lang="zh-Hant" --css style.css -o %_FN%.epub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment