Skip to content
Markdown filter module for Apache HTTPD Server
C
Find file
Latest commit ceb896a @hamano fix apxs2 path
Failed to load latest commit information.
m4 add ax_check_compile_flag.m4
.gitignore supported CSS
.travis.yml fix apxs2 path
AUTHORS autotoolize
COPYING autotoolize
ChangeLog autotoolize
INSTALL change configure argument
Makefile.am fix autoconf macro
NEWS supported CSS
README.md add build status
configure.ac fix autoconf macro
mod_markdown.c change raw output handling

README.md

mod_markdown

Build Status

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

You need to specify full path on debian or ubuntu.

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

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

Or:

<Directory /var/www>
    AddHandler markdown .md
    DirectoryIndex index.md
</Directory>
Something went wrong with that request. Please try again.