index : pandoc | |
Hex package with a file-watcher and Mix task for using Pandoc to convert Markdown files to HTML. |
aboutsummaryrefslogtreecommitdiff |
diff options
-rw-r--r-- | lib/mix/tasks/pandoc.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |