fix logic to insert markdown post created