Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wangeleile/ac8b8a914e1c9ae0deaa5b4078a8a96d to your computer and use it in GitHub Desktop.
Save wangeleile/ac8b8a914e1c9ae0deaa5b4078a8a96d to your computer and use it in GitHub Desktop.
Pandoc File converting incl. link change
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 (*.md) do pandoc\pandoc.exe %%~ni.md -f markdown -t html -H html\header.html -o html/%%~ni.html
pandoc\fart.exe -i -r "html\*.html" .md .html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment