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.
- pkg-config
- awk
- glib-2.0
- peg-markdown
For macOS:
$ brew install glib
For Ubuntu Linux:
$ sudo apt-get update
$ sudo apt-get install glib2.0
$ 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;
}
- BSD-2-Clause