A dynamic Markdown renderer
Live rendering of GitHub Flavored Markdown using Parsedown with Solarized CSS.
Apache httpd
with mod_rewrite
and Overrides:
<Directory "/var/www/html">
AllowOverride All
Require all granted
</Directory>
Should be trivial to get working with lighttpd
or nginx
. Feel free to send a pull request to this README
documenting the steps.
Clone this into the /md/
directory on your webserver.
Put Markdown documents in the same place, like so:
index.php
Parsedown.php
solarized-dark.css
solarized-light.css
myfilename.md
Make sure the webserver has access to read all the files.
Visit /md/myfilename
to see rendered HTML.
You may optionally create a file index.md
to display if no filename
parameter is passed.
Page titles are generated using the first line of the document, expected to be a Markdown heading, eg:
file.md
# My Great File
Browser title becomes "My Great File"
GNU Affero GPL v3
Jamie Bainbridge (jamie.bainbridge@gmail.com)