Skip to content

Instantly share code, notes, and snippets.

@mmparker
Created July 13, 2012 16:52

Revisions

  1. mmparker renamed this gist Jul 13, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. mmparker created this gist Jul 13, 2012.
    8 changes: 8 additions & 0 deletions Batch Pandoc in Windows
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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