return Markdown($action->post->text, array($this, 'wikiLink'));
    }
    protected function renderEditForm($action)
    {
        if (!empty($action->post)) {
            $form = array('raw' => $action->post->text, 'updated' => $action->post->updated);
        } else {
            $form = array('raw' => $action->model->content, 'updated' => $action->model->updated);
        }
        return <<<HTML
<form action="{$action->base}{$action->page}" method="post">
\t<fieldset>
\t\t<legend>Editing</legend>
\t\t<label for="text">Content:</label><br>\t
\t\t<textarea cols="78" rows="20" name="text" id="text">{$form['raw']}</textarea>
\t\t<br>

\t\t<input type="submit" name="preview" value="Preview">
\t\t<input type="submit" name="save" value="Save">
\t\t<input type="hidden" name="updated" value="{$form['updated']}">
\t</fieldset>
</form>
HTML;
    }
}
if (!empty($_SERVER['REQUEST_URI'])) {
    # Dealing with a web request
    $wiki = new MarkdownWiki($config);
    $wiki->handleRequest();
    //print_r($wiki);
}