Skip to main content

Markdown Windows batch file build script.

@echo off

::
:: Markdown batch file build script.
::
:: Usage
::
:: c:\perl\markdown\md.bat example.md
::
:: Dependenices
::
:: - [Perl](http://www.activestate.com/store/activeperl/download/)
:: - [Markdown.pl](http://daringfireball.net/projects/markdown/)
:: - [SmartyPants.pl](http://daringfireball.net/projects/smartypants/)
::
:: Resources
::
:: - <http://www.joelonsoftware.com/items/2006/09/19.html>
:: - <http://daringfireball.net/projects/markdown/>
::

c:\perl\markdown\Markdown.pl %1 > "%~dpn1.tmp"
c:\perl\markdown\SmartyPants.pl "%~dpn1.tmp" > "%~dpn1.html"
del "%~dpn1.tmp"
start "" "%~dpn1.html"