Fix org-capture templates and add markdown-mode.