Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Markdown filter module for Apache HTTPD Server
C
branch: master
Failed to load latest commit information.
m4 add ax_check_compile_flag.m4
.gitignore supported CSS
AUTHORS autotoolize
COPYING autotoolize
ChangeLog autotoolize
INSTALL change configure argument
Makefile.am Merge pull request #7 from dago/master
NEWS supported CSS
README.md Update README.md
configure.ac checking -Wall option
mod_markdown.c fix warnings

README.md

mod_markdown

mod_markdown is Markdown filter module for Apache HTTPD Server.

Dependencies

In debian:

# apt-get install libmarkdown2-dev

Build

% autoreconf -f -i
% ./configure --with-apxs=<APXS_PATH> --with-discount=<DISCOUNT_DIR>
% make
% make install

Note: <DISCOUNT_DIR> is the directory that contains the include directory that contains mkdio.h Probably you need to specify --with-discount=/usr or --with-discount=/usr/local

Configuration

in httpd.conf:

LoadModule markdown_module modules/mod_markdown.so
<Location /markdown>
    AddHandler markdown .md

    # If you want to use stylesheet.
    MarkdownCss style.css
</Location>

Or:

Alias /md /home/matt/md
<Directory /home/matt/md>
    AddHandler markdown .md
    DirectoryIndex index.md
    Order allow,deny
    Allow from all
</Directory>
Something went wrong with that request. Please try again.