Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (14 loc) · 713 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 713 Bytes

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.