Last active
June 23, 2021 21:09
-
-
Save kcole93/2461324344604ec1911b38f227f5811e to your computer and use it in GitHub Desktop.
Drag-n-drop conversion of MD to DOCX following supplied template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: MD CONVERT | |
:: ------------------------ | |
:: Converts all MarkDown files passed as arguments into DOCX following a provided template doc. | |
:: | |
:: ADAPATED FROM ORIGINAL AUTHOR: Paolo Frigo, [email protected] | |
:: https://www.scriptinglibrary.com | |
set list=docx | |
for %%x in (%*) do ( | |
for %%e in (%list%) do ( | |
pandoc -f markdown-auto_identifiers -s %%x -t docx --reference-doc=Notes_Template.docx -o %%~nx.%%e | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment