Converts input to markdown