Function: org-md-export-to-markdown

org-md-export-to-markdown is an autoloaded, interactive and byte-compiled function defined in ox-md.el.gz.

Signature

(org-md-export-to-markdown &optional ASYNC SUBTREEP VISIBLE-ONLY)

Documentation

Export current buffer to a Markdown file.

If narrowing is active in the current buffer, only export its narrowed part.

If a region is active, export that region.

A non-nil optional argument ASYNC means the process should happen asynchronously. The resulting file should be accessible through the org-export-stack interface.

When optional argument SUBTREEP is non-nil, export the sub-tree at point, extracting information from the headline properties first.

When optional argument VISIBLE-ONLY is non-nil, don't export contents of hidden elements.

Return output file's name.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-md.el.gz
;;;###autoload
(defun org-md-export-to-markdown (&optional async subtreep visible-only)
  "Export current buffer to a Markdown file.

If narrowing is active in the current buffer, only export its
narrowed part.

If a region is active, export that region.

A non-nil optional argument ASYNC means the process should happen
asynchronously.  The resulting file should be accessible through
the `org-export-stack' interface.

When optional argument SUBTREEP is non-nil, export the sub-tree
at point, extracting information from the headline properties
first.

When optional argument VISIBLE-ONLY is non-nil, don't export
contents of hidden elements.

Return output file's name."
  (interactive)
  (let ((outfile (org-export-output-file-name ".md" subtreep)))
    (org-export-to-file 'md outfile async subtreep visible-only)))