 			text = def.text
 			text
 				.replace(/^\n/, "")
+				.replace(/>\n?/g, '>')
 				.replace(/\]\n/g, "]")
-				.replace(/\%\>\n/g, "%>")
 				.replace(/\n/g, "<br>")
 				.replace(/<br>\n?(<div class=\"primary-box-outer\">)/g, "$1")
 


			$.extend def, options
			text = def.text
			text.replace(/\[photo:([a-zA-Z0-9\-\.\/\?%\#_]+)\]/mg, '<img align="center" width="100%" src="http://oz.st-n.ru/publish/photo/' + sn.region.name + '/$1">')

		image: (options = {}) ->


			$.extend def, options
			text = def.text
			text
				.replace(/\[file:([a-zA-Z0-9\-\.\/\?%\#_]+) (.*?)\]/g, '<a class="wiki-link" href="http://oz.st-n.ru/publish/files/' + sn.region.name + '/$1" target="_blank">$2</a>')
				.replace(/\[file:([a-zA-Z0-9\-\.\/\?%\#_]+)\]/g, '<a class="wiki-link" href="http://oz.st-n.ru/publish/files/' + sn.region.name + '/$1" target="_blank">$1</a>')

		mailTo: (options = {}) ->

