From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: How To publish to markdown? Date: Thu, 17 Oct 2013 09:58:32 -0400 Message-ID: <06231bb6cd8ad506d334e150b44b8ebe@mail.rickster.com> References: <20131017104133.GA24213@netbunker.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWo6O-0004FB-El for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 09:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWo6I-0002KK-Hf for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 09:59:00 -0400 Received: from [204.62.15.78] (port=41463 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWo6I-0002Hy-96 for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 09:58:54 -0400 In-Reply-To: <20131017104133.GA24213@netbunker.de> 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: Daniel Thom Cc: emacs-orgmode@gnu.org On 2013-10-17 06:41, Daniel Thom wrote: > i use a publish project which calls the function > *org-html-publish-to-html*. > I also need a project to publish to markdown syntax. But there is no > function > org-md-publish-to-md. Could someone explain me, how to publish to > markdown? > Export file by file works... but i need to publish round about 200 > files.... Which version of Org are you using? The function =org-mod-publish-to-md= was added on Sept 25th: #+BEGIN_EXAMPLE commit 5c2b0dac7f0d7ed3cd0a052ddca2386b1e8d90cb Author: Carsten Dominik Date: Wed Sep 25 08:53:59 2013 +0200 Add publishing capabilities to markdown backend ,* lisp/ox-md.el (org-md-publish-to-md): New function. TINYCHANGE Patch by Brice Waegenire #+END_EXAMPLE You can easily define the function yourself if you don't want to upgrade: #+begin_src elisp (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)) #+end_src