markdown cgi
1.0.0
| System | Software | Test |
|---|---|---|
| Windows 11 | IIS 10.0 | |
| Ubuntu 22.04 LTS | Apache 2.4.52 |
curl https://www.axisflow.biz/pkg/markdown-cgi_0-2-0.zip -o markdown-cgi_0-2-0.zip
markdown-cgi
gcc -o md-cgi.exe md-cgi.c md4cmd4c.c md4cmd4c-html.c md4centity.cgcc -o md-cgi md-cgi.c md4c/md4c.c md4c/md4c-html.c md4c/entity.cOptionalFeatures and enterInternet Information Services > World Wide Web Services > Application Development Features > CGI selectedInetMgr and enterYou can also add the following text in the tag <configuration> of the
web.configfile in the object path to skip steps 4~6(replace [] with yours):<system.webServer> <handlers accessPolicy="Read, Execute, Script"> <add name="Markdown-Render" path="*.md" verb="*" modules="CgiModule" scriptProcessor="[Pathtomd-cgi.exe]" resourceType="File" requireAccess="None" /> </handlers> </system.webServer>
*.markdown *.mdown *.mkdn *.mkd *.mdwn *.md
md-cgi.exe just compiledMarkdown-CGI
md-cgi.exe just compiledMarkdown-CGI
Assumed that your Apache was installed from
aptcommand
apachectl -M to ensure actions_module, cgi_module and cgid_module enabled. If not, type the following commands:
sudo a2enmod actions cgidapachectl -t -D DUMP_INCLUDES to ensure conf-enabled/serve-cgi-bin.conf included. If not, type the following commands:
sudo a2enconf serve-cgi-bin.conf/etc/apache2/sites-enabled/000-default.conf default)
Action markdown /cgi-bin/md-cgi
AddHandler markdown .md
md-cgi just compiled to /usr/lib/cgi-bin/
markdown-cgi is covered with MIT license. Please see the file LICENSE.res/LICENSE.