emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Daniel Thom <dt@netbunker.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: How To publish to markdown?
Date: Thu, 17 Oct 2013 09:58:32 -0400	[thread overview]
Message-ID: <06231bb6cd8ad506d334e150b44b8ebe@mail.rickster.com> (raw)
In-Reply-To: <20131017104133.GA24213@netbunker.de>

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 <carsten.dominik@gmail.com>
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

      reply	other threads:[~2013-10-17 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17 10:41 How To publish to markdown? Daniel Thom
2013-10-17 13:58 ` Rick Frankel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06231bb6cd8ad506d334e150b44b8ebe@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=dt@netbunker.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).