From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Markdown: Add publishing in markdown Date: Wed, 25 Sep 2013 08:54:27 +0200 Message-ID: <4F7A396A-54D7-4DF1-AA8C-71D19A1E7B48@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B9A53F15-9415-4AE4-9873-CA87D9C14908"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOizf-00023m-4h for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 02:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOizW-0004SU-Mr for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 02:54:39 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:38325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOizW-0004SM-FK for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 02:54:30 -0400 Received: by mail-we0-f172.google.com with SMTP id w61so5583930wes.17 for ; Tue, 24 Sep 2013 23:54:29 -0700 (PDT) In-Reply-To: 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: Brice Waegenire Cc: emacs-orgmode@gnu.org --Apple-Mail=_B9A53F15-9415-4AE4-9873-CA87D9C14908 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 Hi Brice, applied, thank you! - Carsten On 22.9.2013, at 20:32, Brice Waegenire wrote: > * 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: > --Apple-Mail=_B9A53F15-9415-4AE4-9873-CA87D9C14908 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSQoijAAoJEO+gg/nAZuwMpzEH/0KtR6kHsPalWgfer2DtTh75 IUf3CSvx55Atl/Eyl5PhF0bWGywvG/0tGXgm2sDKpFk21MgUw+ih9C3Lfsx07R6W mTqN5XGUZdA8RBRvdikhPCk3duZHAmP9qdjGTf/V0+6ICSxMdgQepnVsuBjpgZQq YfGXNaXkncdOjbII74K7dyHB32IpLEVcxOsJ6Kmleau4OtcwOZQXYIeeCEiaBcjO KgZ9EuRJoDo0o1boMDdAYbYWKc1jxFclsVRhWThMHFDAyrkCxTmIeTd79sCO5HJP WF9yl1DAR3ps9iHfuwuwFMyOPe6G0IQGmo0oAk+KbOFDioHSxd3hctTHeX95XFU= =a+X6 -----END PGP SIGNATURE----- --Apple-Mail=_B9A53F15-9415-4AE4-9873-CA87D9C14908--