When the user switch to the preview mode a simple preview will be shown. To do this, a simple parser that converts the basic wikitext markup to html is needed.
Instead of writing it from scratch I would preferablly find and already existing one, so let's discuss here about the possible parsers and renderers you find