From 83f9d740f38aa6ff01ff06e0efe7150be35c374f Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Tue, 17 Jun 2025 11:17:37 -0700 Subject: [PATCH] Pass full path to call to pandoc in mix task --- lib/mix/tasks/pandoc.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mix/tasks/pandoc.ex b/lib/mix/tasks/pandoc.ex index 179eab8..2c1573d 100644 --- a/lib/mix/tasks/pandoc.ex +++ b/lib/mix/tasks/pandoc.ex @@ -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