-
Is there an easy way to use my metadata title field as my output-file name? I wrote a simple Lua filter that sanitizes the title a bit, but I don't think I can then set a default value from a Lua filter, just set it as a metadata field. Can metadata fields be used as default / command-line options? |
Beta Was this translation helpful? Give feedback.
Answered by
jgm
Sep 15, 2025
Replies: 1 comment
-
You can use a small shell script: #!/bin/sh -e
temp=$(mktemp)
echo '$title$' > "$temp"
outfile="$(pandoc --template "$temp" "$@")".html
pandoc -o "$outfile" "$@" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hgvhgv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a small shell script: