From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brice Waegenire Subject: [PATCH] Markdown: Add publishing in markdown Date: Sun, 22 Sep 2013 20:32:11 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNoS6-00067f-8x for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 14:32:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNoS4-0002aF-H0 for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 14:32:14 -0400 Received: from mail-qe0-x235.google.com ([2607:f8b0:400d:c02::235]:42367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNoS4-0002aB-Ca for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 14:32:12 -0400 Received: by mail-qe0-f53.google.com with SMTP id jy17so1530189qeb.40 for ; Sun, 22 Sep 2013 11:32:11 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * lisp/ox-md.el Add the possibility to publish in Markdown by using the function org-md-publish-to-md. TINYCHANGE --- diff --git a/lisp/ox-md.el b/lisp/ox-md.el index f7e4875..71759ac 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -31,7 +31,7 @@ (eval-when-compile (require 'cl)) (require 'ox-html) - +(require 'ox-publish) ^L ;;; 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: