[feature/markdown] fixed error when post.markdown is empty. and added some error.