Skip to content

Commit

Permalink
Merge pull request #16 from iagobaapellaniz/main
Browse files Browse the repository at this point in the history
Bug in `--reference-link` and `--toc` options
  • Loading branch information
kdheepak authored Oct 6, 2023
2 parents 8757882 + 96becda commit 84668f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 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 All @@ -163,7 +163,7 @@ function command(c::Converter; p = PANDOC_JL_EXECUTABLE)
cmd = `$cmd --include-before-body=$(include)`
end
for include in c.include_after_body
cmd = `$cmd --include-after_body=$(include)`
cmd = `$cmd --include-after-body=$(include)`
end
c.no_highlight && (cmd = `$cmd --no-highlight`)
!isnothing(c.highlight_style) && (cmd = `$cmd --highlight-style=$(c.highlight_style)`)
Expand All @@ -172,7 +172,7 @@ function command(c::Converter; p = PANDOC_JL_EXECUTABLE)
!isnothing(c.eol) && (cmd = `$cmd --eol=$(c.eol)`)
!isnothing(c.columns) && (cmd = `$cmd --columns=$(c.columns)`)
c.preserve_tabs && (cmd = `$cmd --preserve-tabs`)
!isnothing(c.tab_stop) && (cmd = `$cmd --tab_stop=$(c.tab_stop)`)
!isnothing(c.tab_stop) && (cmd = `$cmd --tab-stop=$(c.tab_stop)`)
!isnothing(c.pdf_engine) && (cmd = `$cmd --pdf-engine=$(c.pdf_engine)`)
!isnothing(c.pdf_engine_opt) && (cmd = `$cmd --pdf-engine-opt=$(c.pdf_engine_opt)`)
!isnothing(c.reference_doc) && (cmd = `$cmd --reference-doc=$(c.reference_doc)`)
Expand All @@ -193,7 +193,7 @@ function command(c::Converter; p = PANDOC_JL_EXECUTABLE)
!isnothing(c.base_header_level) && (cmd = `$cmd --base-header-level=$(c.base_header_level)`)
!isnothing(c.track_changes) && (cmd = `$cmd --track-changes=$(c.track_changes)`)
c.strip_comments && (cmd = `$cmd --strip-comments`)
c.reference_links && (cmd = `$cmd --reference_links`)
c.reference_links && (cmd = `$cmd --reference-links`)
!isnothing(c.reference_location) && (cmd = `$cmd --reference-location=$(c.reference_location)`)
!isnothing(c.markdown_headings) && (cmd = `$cmd --markdown-headings=$(c.markdown_headings)`)
c.list_tables && (cmd = `$cmd --list-tables`)
Expand Down Expand Up @@ -236,7 +236,7 @@ function command(c::Converter; p = PANDOC_JL_EXECUTABLE)
c.bash_completion && (cmd = `$cmd --bash-completion`)
c.list_input_formats && (cmd = `$cmd --list-input-formats`)
c.list_output_formats && (cmd = `$cmd --list-output-formats`)
!isnothing(c.list_extensions) && (cmd = c.list_extensions == true ? `$cmd --list_extensions` : `$cmd --list_extensions=$(c.list_extensions)`)
!isnothing(c.list_extensions) && (cmd = c.list_extensions == true ? `$cmd --list-extensions` : `$cmd --list-extensions=$(c.list_extensions)`)
c.list_highlight_languages && (cmd = `$cmd --list-highlight-languages`)
c.list_highlight_styles && (cmd = `$cmd --list-highlight-styles`)
!isnothing(c.print_default_template) && (cmd = `$cmd --print-default-template=$(c.print_default_template)`)
Expand Down

0 comments on commit 84668f5

Please sign in to comment.