From 417583b82d027664fbacc9c13f335da13149ba9c Mon Sep 17 00:00:00 2001 From: Iagoba Apellaniz Date: Mon, 2 Oct 2023 15:18:33 +0200 Subject: [PATCH] Bug in `--toc` option --- src/interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.jl b/src/interface.jl index 33a93ce..5a4c642 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -149,7 +149,7 @@ function command(c::Converter; p = PANDOC_JL_EXECUTABLE) !isempty(c.variables) && (cmd = `$cmd $(join(map(x -> "-V $(x[1]):$(x[2])", c.variables), " "))`) !isnothing(c.wrap) && (cmd = `$cmd --wrap=$(c.wrap)`) c.ascii && (cmd = `$cmd --ascii $(c.ascii)`) - c.toc && (cmd = `$cmd --toc $(c.toc)`) + c.toc && (cmd = `$cmd --toc`) !isnothing(c.toc_depth) && (cmd = `$cmd --toc-depth=$(c.toc_depth)`) c.number_sections && (cmd = `$cmd --number-sections`) !isempty(c.number_offset) && (cmd = `$cmd --number-offset=$(join(c.number_offset, ","))`)