Skip to content

Instantly share code, notes, and snippets.

@mmparker
Created September 4, 2013 21:09
Show Gist options
  • Select an option

  • Save mmparker/6442922 to your computer and use it in GitHub Desktop.

Select an option

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.
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