Created
September 4, 2013 21:09
-
-
Save mmparker/6442922 to your computer and use it in GitHub Desktop.
This is a script I use for converting directories full of Markdown files into directories full of HTML files, with a directory of links appended to each file.
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
| REM This file converts all of the Markdown files to HTML. | |
| REM Main files | |
| for %%i in (main/*.markdown) do pandoc -f markdown -t html5 main/%%~ni.markdown links.markdown > html/main/%%~ni.html | |
| REM Report pages | |
| for %%i in (report_pages/*.markdown) do pandoc -f markdown -t html5 report_pages/%%~ni.markdown links.markdown > html/report_pages/%%~ni.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment