Skip to content

Commit

Permalink
Bug in --toc option
Browse files Browse the repository at this point in the history
  • Loading branch information
iagobaapellaniz authored Oct 2, 2023
1 parent 7c5a787 commit 417583b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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, ","))`)
Expand Down

0 comments on commit 417583b

Please sign in to comment.