add validation for markdown content