Skip to content

Commit

Permalink
Call pandoc via the _pandoc() wrapper in _export().
Browse files Browse the repository at this point in the history
refs gh-283
  • Loading branch information
xwmx committed Oct 18, 2023
1 parent 56a6717 commit 25df639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nb
Original file line number Diff line number Diff line change
Expand Up @@ -15036,9 +15036,9 @@ _export() {
then
if [[ -n "${_args[*]:-}" ]]
then
pandoc "${_notebook_path}/${_relative_path}" "${_args[@]:-}"
_pandoc "${_notebook_path}/${_relative_path}" "${_args[@]:-}"
else
pandoc "${_notebook_path}/${_relative_path}"
_pandoc "${_notebook_path}/${_relative_path}"
fi
else
_exit_1 printf "Pandoc required. https://pandoc.org/\\n"
Expand Down Expand Up @@ -15088,13 +15088,13 @@ _export() {
then
if [[ -n "${_args[*]:-}" ]]
then
pandoc \
_pandoc \
-o "${_target_path}" \
--standalone \
"${_notebook_path}/${_relative_path}" \
"${_args[@]:-}"
else
pandoc \
_pandoc \
-o "${_target_path}" \
--standalone \
"${_notebook_path}/${_relative_path}"
Expand Down

0 comments on commit 25df639

Please sign in to comment.