Homemade markdown parser