- Install
pandoc
on your system - Make sure
python
is installed - Copy the
pandoc.conf
file to theconf.available
folder of yourapache
server - Enable via
a2enconf pandoc.conf
(if apache 2.2 just copy toconf.d
instead) - Create a
/usr/share/apache-pandoc
folder - Copy the
pandoc.py
and themarkdown.css
files to the/usr/share/apache-pandoc
folder - Restart your
apache
server
- Copy this file to a folder accessible by
apache
(i.e./home/user/public_html
) - Access
http://localhost/~user/README.md
with a browser (you will see thehtml5
version of this file) - Access
http://localhost/~user/README.html
with a browser (you will see thehtml
version of this file) - Access
http://localhost/~user/README.pdf
with a browser (you will see thepdf
version of this file) - Access
http://localhost/~user/README.rtf
with a browser (you will see thertf
version of this file) - Access
http://localhost/~user/README.odt
with a browser (you will see theodt
version of this file) - Access
http://localhost/~user/README.raw
with a browser (you will see theraw
version 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