added markdown function to topics and post