a bit more reorder

pull/350/head
Shuhei Kadowaki 2020-06-02 15:45:38 +09:00
parent 4b12f3da99
commit 04b24ea83b
1 changed files with 6 additions and 2 deletions

View File

@ -191,7 +191,6 @@ function weave(
css isa AbstractString && (css = normpath(dirname(source), css))
end
highlight_theme = get(weave_options, "highlight_theme", highlight_theme)
pandoc_options = get(weave_options, "pandoc_options", pandoc_options)
latex_cmd = get(weave_options, "latex_cmd", latex_cmd)
keep_unicode = get(weave_options, "keep_unicode", keep_unicode)
end
@ -200,10 +199,15 @@ function weave(
rendered = render_doc(doc)
outname = get_outname(out_path, doc)
open(io->write(io,rendered), outname, "w")
# document generation via external programs
# -----------------------------------------
if !isnothing(weave_options)
pandoc_options = get(weave_options, "pandoc_options", pandoc_options)
end
doctype = doc.doctype
if doctype == "pandoc2html"
mdname = outname