convert contents into org-mode format