Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active February 19, 2016 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/ccf9547d9e4d0786113c to your computer and use it in GitHub Desktop.
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
@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"
)
@ericoporto
Copy link
Author

dragmdturndocx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment