GSoC/GCI Archive
Google Code-in 2012 The NetBSD Project

Create a small markdown wiki CGI

completed by: wmzhere

mentors: Julian Coleman, Julian Fagir

NetBSD has a shipped web server name bozohttpd (

Your task this time is to write a cgi in C which uses libsoldout ( to create a wiki that runs locally on your webserver. Then, this cgi just parses the markdown to html and resolves the links right, such that you can browse a local wiki (e.g. the NetBSD one) without having to parse everything to HTML and leave it as such in the file system.

So mainly you have to write a CGI which uses the mkd2html parser from libsoldout, but does the links right. You also have to consider the links written as [[Linkname]] which are often used internally in wikis.


As the parsing itself is rather small, you should provide a small tutorial, or rather a complete setup which already runs this cgi with bozohttpd. You can use the test virtual machines from to provide such a setup.

Optimally, you would make everything as easy as possible, also delivering a bozohttpd configuration to run the cgi directly. The user should not have to set up much to get this running, but rather only start one script and then point his web browser to localhost to make it run.