In the Konilo system, I have a set of blocks that serve as a little wiki. This is a small program that generates HTML from the wiki: blocks.
It assumes the existance of an _wiki directiory under the current directory. The generated HTML will be store in this.
If you use this, I recommend having it run via a cron job.
Wiki blocks take a form of:
0 wiki: pagename 1 .... 2 .... ... [snipped] ... 14 .... 15 ....
I define a helper word to identify the wiki blocks based on their title line.
Since the exported blocks need to go into files, I want to name the files after the pagename in the title line. A pair of words is defined to extract the page name and to generate a file name.
The actual page names are required to be lowercase.
Wiki entries are ordinary blocks. I use an asterisk () sigil to mark links. My strategy here is to copy a line into a Line buffer, then tokenize it. I can then look at the start of each token to see if it is a link. If so, I generate an tag for the link. Otherwise I just display the token.