emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brice Waegenire <brice.wge@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Markdown: add publishing in markdown
Date: Mon, 23 Sep 2013 17:44:46 +0200	[thread overview]
Message-ID: <CAL5NfX0WnhbbFmALbWigqDRLryZ5S4U2XomzRYbi7-iqV4_fsw@mail.gmail.com> (raw)

* 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:

             reply	other threads:[~2013-09-23 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23 15:44 Brice Waegenire [this message]
2013-09-23 22:01 ` [PATCH] Markdown: add publishing in markdown Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2013-09-22 18:32 [PATCH] Markdown: Add " Brice Waegenire
2013-09-25  6:54 ` Carsten Dominik

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=CAL5NfX0WnhbbFmALbWigqDRLryZ5S4U2XomzRYbi7-iqV4_fsw@mail.gmail.com \
    --to=brice.wge@gmail.com \
    --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).