resolve wiki links before sanitising text

need to resolve any wiki links in the text, as well as sanitizing it.

resolves #5