< a quantity that can be divided into another a whole number of time />

February 9, 2019

The more I use Org for authoring simple or more complex text documents, the more I like. I like to think of it as Markdown with better markup for links, code blocks, tables, and references, and of course there’s Emacs inline preview. Except for collaborating with colleagues or drafting short RMarkdown documents, I mostly stopped using Markdown these days. Maybe I should just revisit some old Md files and just convert them to Org.

(defun markdown-convert-buffer-to-org ()
    "Convert the current buffer's content from markdown to orgmode format."
    (shell-command-on-region (point-min) (point-max)
                             (format "pandoc -f markdown -t org -o %s"
                                     (concat (file-name-sans-extension (buffer-file-name)) ".org"))))

See also: Org-Mode Is One of the Most Reasonable Markup Languages to Use for Text.