August 10, 2010 at 1:00 PM by Dr. Drang
It works by adding a couple of lines to your Apache
httpd.conf file (or, alternatively, your
.htaccess file) that assign a “handler” to files ending in
.markdown. The handler is a PHP script that passes the Markdown file through PHP Markdown Extra and wraps some boilerplate HTML around it before sending the result off to your web browser.
I learned about it from an RSS notice that appeared in my Google Reader this morning. Alan Lue, Markdown Handler’s maintainer, had started watching my PHP Markdown Extra Math repository.1 In fact, he’s now using PHP Markdown Extra Math as his Markdown processor and loads jsMath in the
<head> of the HTML wrapper.
If I weren’t committed to the idea that my PNotes personal wiki system should work without a server, I’d probably be rewriting it to use Markdown Handler. If you write everything in Markdown, as I do, it looks like a great way to run a small site.