Skip to content

Instantly share code, notes, and snippets.

@tmuth
Created November 10, 2014 19:14
Show Gist options
  • Save tmuth/04aab71cf908c93577ef to your computer and use it in GitHub Desktop.
Save tmuth/04aab71cf908c93577ef to your computer and use it in GitHub Desktop.
Pandoc Ant Task to Convert github README.md to local readme.html
<macrodef name="pandoc-convert">
<attribute name="input" />
<attribute name="output" />
<sequential>
<exec executable="pandoc" dir=".">
<arg line="--from=markdown_github " />
<arg line="--standalone" />
<arg line="-o @{output}" />
<arg line="@{input}" />
</exec>
</sequential>
</macrodef>
<target name="pandoc-convert-readme">
<pandoc-convert input="README.md" output="readme.html" />
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment