added application decorator and moved markdown parse functionality into it