Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Apache handler for .md files, written in PHP (GitHub look)
branch: master

This branch is 3 commits ahead of sminnee:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Markdown Handler

This little script adds an Apache handler that lets you view Markdown files with a .md extension more prettily on your webserver.

The Markdown is styled as it would at GitHub.

It's based on a PHP Markdown implementation by Michel Fortin.


  • Copy the markdown directory into your webroot.
  • Copy .htaccess to your root.


  • Copy the markdown directory to a shared directory like /usr/local/share.
  • Add the following code to your apache config

Alias _markdown /usr/local/share/markdown
Action markdown /_markdown/handler.php
AddHandler markdown .md .markdown

Now visit a .md file on your webserver; you should see it as properly styled HTML :).

Something went wrong with that request. Please try again.