- Install
pandocon your system - Make sure
pythonis installed - Copy the
pandoc.conffile to theconf.availablefolder of yourapacheserver - Enable via
a2enconf pandoc.conf(if apache 2.2 just copy toconf.dinstead) - Create a
/usr/share/apache-pandocfolder - Copy the
pandoc.pyand themarkdown.cssfiles to the/usr/share/apache-pandocfolder - Restart your
apacheserver
- Copy this file to a folder accessible by
apache(i.e./home/user/public_html) - Access
http://localhost/~user/README.mdwith a browser (you will see thehtml5version of this file) - Access
http://localhost/~user/README.htmlwith a browser (you will see thehtmlversion of this file) - Access
http://localhost/~user/README.pdfwith a browser (you will see thepdfversion of this file) - Access
http://localhost/~user/README.rtfwith a browser (you will see thertfversion of this file) - Access
http://localhost/~user/README.odtwith a browser (you will see theodtversion of this file) - Access
http://localhost/~user/README.rawwith a browser (you will see therawversion of this file)
Create a /home/user/public_html/.apache-pandoc.ini file containing
[Pandoc]
toc=true
And access to http://localhost/~user/README.md with a browser (you will see the html version of this file with a table of contents). A lot of configuration options can be inserted in the .apache-pandoc.ini files. See pandoc.py for more details.
apache-pandoc is released under the CeCILL-B license
- Christophe Demko