Created
July 13, 2012 16:52
-
-
Save mmparker/3105949 to your computer and use it in GitHub Desktop.
Batch conversion of .markdown to .html on Windows command line
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
REM This file converts all of the Markdown files to HTML. | |
REM Converting in the current directory | |
REM %%~ni returns just the filename of %%i, not its extension | |
for %%i in (*.markdown) do pandoc -f markdown -t html5 %%~ni.markdown > html/%%~ni.html | |
REM Converting a subdirectory - just slap it on front | |
for %%i in (report_pages/*.markdown) do pandoc -f markdown -t html5 report_pages/%%~ni.markdown > html/report_pages/%%~ni.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I reverse this to do a batch conversion from HTML to Markdown on Windows?