diff options
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-x | aux/workflow/commonmark.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index e97751b..6016f51 100755 --- a/aux/workflow/commonmark.sh +++ b/aux/workflow/commonmark.sh @@ -5,6 +5,7 @@ mkdir -p public PROJECT_UC="$1" F="$2" +OUT="${3:-${F%.*}.html}" pandoc \ --toc \ @@ -16,4 +17,4 @@ pandoc \ -r commonmark \ -w html \ -H aux/workflow/favicon.html \ - < "$F" > "public/${F%.*}.html" + < "$F" > "public/$OUT" |