#!/bin/zsh 

for i in $(find . | egrep -i "\.md|\.markdown"); 


	do 

		echo "Nous traitons $i" 
		sed -r -i.backup 's/\.(jpg|jpeg|png)/-low.png/g' $i
		sed -r -i.backup 's/\![[](.*)[]][(](.*)[)]/{{< lowimage src="\2" title="\1" >}}/g' $i

	; done 

#find . | egrep "\.backup$" | xargs /bin/rm -rf '{}' 