mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
partial #24 it is default behavior, not optional
This commit is contained in:
parent
b4a5b9ccad
commit
257986fd5a
@ -282,9 +282,11 @@ end
|
||||
|
||||
local function make_epub(config)
|
||||
utility.required_program("pandoc")
|
||||
local output_dir = "All ePubs"
|
||||
os.execute("mkdir " .. output_dir:enquote())
|
||||
|
||||
local base_file_name = get_base_file_name(config)
|
||||
os.execute("pandoc --from markdown --to epub " .. (base_file_name .. ".md"):enquote() .. " -o " .. (base_file_name .. ".epub"):enquote() .. " --toc=true")
|
||||
os.execute("pandoc --from markdown --to epub " .. (base_file_name .. ".md"):enquote() .. " -o " .. (output_dir .. path_separator .. base_file_name .. ".epub"):enquote() .. " --toc=true")
|
||||
end
|
||||
|
||||
local function rm_html_files(config)
|
||||
|
Loading…
Reference in New Issue
Block a user