Nginx Markdown Module, convert .md file to .html with specific header and footer
ngx_http_markdown_module
is a simple Nginx module, which serves local Markdown files, converting them to html, and make response with headers and footers.
glib-2.0
For macOS:
$ brew install glib
For Ubuntu Linux:
$ sudo apt-get update
$ sudo apt-get install glib2.0
peg-markdown
$ git submodule update --init --recursive
$ cd peg-markdown
$ make library
$ ./configure --add-module=/path/to/ngx_http_markdown_module
$ make
$ [sudo] make install
ngx_http_markdown_module conf
location /markdown {
markdown on;
markdown_html_header /path/to/header.html;
markdown_html_footer /path/to/footer.html;
}