Pass full path to call to pandoc in mix task

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-17 11:17:37 -07:00
parent 6a7d775eef
commit 83f9d740f3

View File

@ -36,7 +36,7 @@ defmodule Mix.Tasks.Pandoc do
|> Path.join("*#{@ext}")
|> Path.wildcard()
|> Enum.each(fn path ->
case Pandoc.run(profile, Path.basename(path)) do
case Pandoc.run(profile, path) do
0 -> :ok
status -> Mix.raise("`mix pandoc #{Enum.join(all, " ")}` exited with #{status}")
end