Added URL rewrite to markdown preview