emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How To publish to markdown?
@ 2013-10-17 10:41 Daniel Thom
  2013-10-17 13:58 ` Rick Frankel
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Thom @ 2013-10-17 10:41 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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....

I read about a patch but i dont know how to implement it...

-- 
with best
Daniel

http://netbunker.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How To publish to markdown?
  2013-10-17 10:41 How To publish to markdown? Daniel Thom
@ 2013-10-17 13:58 ` Rick Frankel
  0 siblings, 0 replies; 2+ messages in thread
From: Rick Frankel @ 2013-10-17 13:58 UTC (permalink / raw)
  To: Daniel Thom; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-17 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 10:41 How To publish to markdown? Daniel Thom
2013-10-17 13:58 ` Rick Frankel

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).