Created
November 10, 2014 19:14
-
-
Save tmuth/04aab71cf908c93577ef to your computer and use it in GitHub Desktop.
Pandoc Ant Task to Convert github README.md to local readme.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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