Last active
February 19, 2016 20:04
-
-
Save ericoporto/ccf9547d9e4d0786113c to your computer and use it in GitHub Desktop.
Drag and drop markdown to docx converter, for use with Windows. Example: http://i.imgur.com/sDjj5ty.gif
This file contains 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
@ECHO OFF | |
REM Drag and drop markdown to docx converter | |
REM ======================================== | |
REM This script requires PANDOC to be installed. | |
REM | |
REM Usage | |
REM ----- | |
REM In Windows Explorer, drag a .md file on top of this script. | |
REM You can also call this script using: | |
REM md2docx.bat filename.md | |
pandoc --version >nul 2>&1 && ( | |
pandoc -o "%~n1.docx" -f markdown -t docx "%~1" | |
) || ( | |
echo "PANDOC isn't installed or not available on PATH" | |
) |
Author
ericoporto
commented
Feb 19, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment