index : pandoc | |
Hex package with a file-watcher and Mix task for using Pandoc to convert Markdown files to HTML. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-12-12 12:28:47 -0800 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-12-12 12:28:47 -0800 |
commit | 16d8324d0ca8d78d050f0dd03d718e5af2773dc2 (patch) | |
tree | aab755956d0eeb206eb48117300ce974cbc0ecb3 /lib | |
parent | bb77e0572a0b2aa47168f78fe7565f1fbc84cf98 (diff) |
Pass full path to call to pandoc in mix task
Diffstat (limited to 'lib')
-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 |