Skip to content

Commit 37577bb

Browse files
committed
support partial options tuple
1 parent a9b24f8 commit 37577bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PlutoPDF.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function html_to_pdf(html_path::AbstractString, output_path::Union{AbstractStrin
4646
output_path = something(output_path, Pluto.numbered_until_new(splitext(html_path)[1]; suffix=".pdf", create_file=false))
4747

4848
@info "Generating pdf..."
49-
cmd = `$(nodejs_cmd()) $bin_script $(abspath(html_path)) $(abspath(output_path)) $(JSON.json(options))`
49+
cmd = `$(nodejs_cmd()) $bin_script $(abspath(html_path)) $(abspath(output_path)) $(JSON.json(
50+
(; default_options..., options...)
51+
))`
5052
if console_output
5153
run(cmd)
5254
else

0 commit comments

Comments
 (0)