converting to markdown and generating valid ikiwiki links