removing unnecessary <p> tags from markdown