Skip to content

Nginx Markdown Module, convert .md file to .html with specific header and footer

License

Notifications You must be signed in to change notification settings

crisp-archive/ngx_http_markdown_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngx_http_markdown_module

Introduction

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.

Build

Prerequisites

  • pkg-config
  • awk
  • glib-2.0
  • peg-markdown

Build Prerequisites

Install glib-2.0

For macOS:

$ brew install glib

For Ubuntu Linux:

$ sudo apt-get update
$ sudo apt-get install glib2.0

Build peg-markdown

$ git submodule update --init --recursive
$ cd peg-markdown
$ make library

Build Nginx

$ ./configure --add-module=/path/to/ngx_http_markdown_module
$ make
$ [sudo] make install

Configuration

ngx_http_markdown_module conf

location /markdown {  
    markdown             on;  
    markdown_html_header /path/to/header.html;  
    markdown_html_footer /path/to/footer.html;  
}

License

  • BSD-2-Clause

About

Nginx Markdown Module, convert .md file to .html with specific header and footer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages