adds preview to markdown