added the original markdown script written in perl