 			$.extend def, options
 			text = def.text
 			text
-				.replace(/\[email:([a-zA-Z0-9@\-\.\/\?%\#_]+) (.*?)\]/mg, '<a class="wiki-link" href="mailto:$1">$2</a>')
-				.replace(/\[email:([a-zA-Z0-9@\-\.\/\?%\#_]+)\]/mg, '<a class="wiki-link" href="mailto:$1">$1</a>')
+				.replace(/\[email:([a-zA-Z0-9@\-\.\/\?%\#_]+) (.*?)\]/g, '<a class="wiki-link" href="mailto:$1">$2</a>')
+				.replace(/\[email:([a-zA-Z0-9@\-\.\/\?%\#_]+)\]/g, '<a class="wiki-link" href="mailto:$1">$1</a>')
 
 		photo: (options = {}) ->
 


			$.extend def, options
			text = def.text
			text = `text.replace(/======(.*?)======\n?/mg, "<h6>$1</h6>")`
			text = `text.replace(/=====(.*?)=====\n?/mg, "<h5>$1</h5>")`
			text = `text.replace(/====(.*?)====\n?/mg, "<h4>$1</h4>")`
			text = `text.replace(/===(.*?)===\n?/mg, "<h3>$1</h3>")`
			text = `text.replace(/==(.*?)==\n?/mg, "<h2>$1</h2>")`

		externalLinks: (options = {}) ->


			$.extend true, def, options
			
			text = def.text
			text = $(_this).snWiki('formating', text: text)
			text = $(_this).snWiki('headings', text: text)
			text = $(_this).snWiki('externalLinks', text: text)
