Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjdev/apache-mod-sundown
mod_sundown is Markdown handler module for Apache HTTPD Server.
https://github.com/kjdev/apache-mod-sundown
Last synced: 25 days ago
JSON representation
mod_sundown is Markdown handler module for Apache HTTPD Server.
- Host: GitHub
- URL: https://github.com/kjdev/apache-mod-sundown
- Owner: kjdev
- License: apache-2.0
- Created: 2012-04-23T05:07:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-03T08:41:04.000Z (over 11 years ago)
- Last Synced: 2024-11-18T00:52:39.080Z (about 2 months ago)
- Language: C
- Size: 454 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mod_sundown #
mod_sundown is Markdown handler module for Apache HTTPD Server.
mod_sundown is deprecated.
change to [mod_hoedown](https://github.com/kjdev/apache-mod-hoedown).
## Dependencies ##
* [sundown](https://github.com/kjdev/sundown)
## Build ##
% ./autogen.sh (or autoreconf -i)
% ./configure [OPTION]
% make
% make install### Build Options ###
sundown library extensions.
* --enable-sundown-no-intra-emphasis
* --enable-sundown-autolink
* --enable-sundown-strikethrough
* --enable-sundown-lax-html-blocks
* --enable-sundown-space-headers
* --enable-sundown-superscript
* --enable-sundown-tables
* --enable-sundown-fenced-code
* --enable-sundown-special-attributes* --enable-sundown-skip-linebreak
* --enable-sundown-xhtml
* --enable-sundown-toc
* --enable-sundown-task-listmarkdown raw print.
* --enable-sundown-raw-support
http://localhot/index.md?raw
markdown toc support.
* --enable-sundown-toc-support
http://localhot/index.md?toc
http://localhot/index.md?toc=3
http://localhot/index.md?toc=:3
http://localhot/index.md?toc=2:4apache path.
* --with-apxs=PATH
* --with-apr=PATH
* --with-apreq2=PATH## Configration ##
httpd.conf:
LoadModule sundown_module modules/mod_sundown.so
SetHandler sundown
## Style ##
/var/www/style/default.html:
Markdown Layout
httpd.conf:
LoadModule sundown_module modules/mod_sundown.so
SetHandler sundown
SundownStylePath /var/www/style
SundownStyleDefault default
SundownStyleExtension .html
This will expand the markdown file next to the line
with the "" of style.html.### Multiple Style ##
* /var/www/style/style.html
* /var/www/style/style-2.htmlYou can change the layout file by specifying the layout parameters.
http://localhot/markdown/readme.md?style=style
http://localhot/markdown/readme.md?style=style-2## URL ##
You can also get the file from an external source
by specifying the Markdown file to URL parameter.http://localhot/markdown?url=https://raw.github.com/kjdev/apache-mod-sundown/master/README.md
## Markdown ##
You can also send a markdown Markdown content parameter. (Send to POST)
POST http://localhot/markdown
form:
## Order ##
Load the content in order.
1. A local file
2. Markdown Parameters
3. URL parametersOutput together.