I write a lot of stuff in Markdown and process them with Pandoc and create a .docx file from them. In the Pandoc sublime settings I can specify build options and I can also define the name of the output file.
But besides using a static output filename, e.g. output.docx it would be great to use the base filename and add the extension .docx.
Is that possible? I also opened an issue for the SublimeText-Pandoc package, but I didn’t get a response so far. In the issue you can also see my example settings.
I would like that the output file for pandoc should be based on the input filename.
Example:
input: document1.md
output: document1.docx
I tried to add the following in my pandoc user settings:
"pandoc-arguments": [
"-t", "docx",
"-o", "$file_base_name.docx",
// if -o or --output missing, will write to a temporary file
// "--output=~/Downloads/output.pdf"
]
But that generates unfortunately only a file called $file_base_name.docx
.
How would I do that?