preview.html now has markdown support

thanks @deepak1556 !