Markdown Handler - Apache handler for .md files, written in PHP

Reference

Install/Configure

Assuming your webroot is /var/www

svn export https://github.com/sminnee/markdown-handler.git/trunk/ /var/www/ --force

Contents of .htaccess file

cat /var/www/.htaccess.txt

Output

    Action markdown /markdown/handler.php
    AddHandler markdown .md

Apache Config

Include contents of .htaccess in apache config

Other items

  • Optionally delete .htaccess file
  • Enable Actions Mod in Apache
    a2enmod actions
  • Restart apache
    service apache2 restart

QR Code
QR Code tech:apache:md_files (generated for current page)