thwaller / markdown-handler

Apache handler for .md files, written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown Handler

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

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

Installation

  • Copy .htaccess to your root, or update your httpd.conf file with its contents, if you prefer.
  • Ensure that mod_rewrite and mod_actions are enabled in your Apache server:
    • sudo a2enmod rewrite
    • sudo a2enmod actions
    • sudo systemctl restart apache2 (apply the changes)
  • Copy the markdown directory into your webroot.

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

About

Apache handler for .md files, written in PHP


Languages

Language:PHP 98.4%Language:CSS 1.6%