ox-md: Add publishing function to back-end

This commit is contained in:
korthaerd 2013-09-24 00:06:24 +02:00 committed by Nicolas Goaziou
parent b6cc24ae14
commit f6bf7eee79
1 changed files with 12 additions and 1 deletions

View File

@ -31,7 +31,7 @@
(eval-when-compile (require 'cl))
(require 'ox-html)
(require 'ox-publish)
;;; User-Configurable Variables
@ -477,6 +477,17 @@ Return output file's name."
(org-export-to-file 'md outfile async subtreep visible-only)))
;;;###autoload
(defun org-md-publish-to-md (plist filename pub-dir)
"Publish an org file to Markdown.
FILENAME is the filename of the Org file to be published. PLIST
is the property list for the given project. PUB-DIR is the
publishing directory.
Return output file name."
(org-publish-org-to 'md filename ".md" plist pub-dir))
(provide 'ox-md)
;; Local variables: