edit post for markdown