Pandoc task
Pandoc task
Description
Task to process pandoc, a universal document converter (see: johnmacfarlane.net/pandoc/ ).
Installation
$ apt-get install pandoc
Pandoc task parameters
Attribute | Description | Value | Required |
---|---|---|---|
file | The input file | see shortcut extensions or set ‘format’ parameter | yes |
tofile | The output file | see shortcut extensions or set ‘toformat’ parameter | yes, if outputproperty is undefined |
outputproperty | The output property | see shortcut extensions to set property name | yes, if tofile is undefined |
inputformat | The input format | see Pandoc user’s guide | no |
format | The output format | see Pandoc user’s guide | no |
Shortcut extensions:
- .md => markdown file
- .dbk|.xml => docbook file
Examples
<project name="pandoc task">
<taskdef name="pandoc"
classname="net.sourceforge.ant4x.taskdefs.doc.PandocTask"
classpath="PATH/TO/ant4x.jar"/>
<target name="pandoc">
<pandoc file="<mardown>.md" tofile="<docbook>.dbk" />
</target>
</project>