From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Writing a custom export. Date: Fri, 13 Aug 2010 12:24:38 -0700 Message-ID: <877hju48p5.fsf@pellet.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44629 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ojzrw-0000p4-NO for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 15:24:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ojzrs-0006YC-Rr for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 15:24:42 -0400 Received: from lo.gmane.org ([80.91.229.12]:50237) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ojzrs-0006Y3-IM for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 15:24:40 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ojzrr-0004p6-Kt for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 21:24:39 +0200 Received: from 63.226.249.211 ([63.226.249.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 21:24:39 +0200 Received: from eric by 63.226.249.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 21:24:39 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Fri, Aug 13 2010, Puneeth wrote: > Hi Alex, > > On Fri, Aug 13, 2010 at 11:39 PM, Alex wrote: >> I've been using emacs + org-mode for ~6 months and haven't done any elisp >> hacking beyond a custom .emacs file. I would like to write a custom org-mode >> export to markdown to play around with elisp and so that I can write readmes >> for my github projects in org-mode. Are there any good tutorials on writing >> a custom export? > > A couple of things, > 1. Github understands org files. README can be written in org mode also. > 2. You should look at org-export-generic > [http://orgmode.org/worg/org-contrib/org-export-generic.php] in case > you wish to continue with writing your custom export to markdown. > Hey, this is great! I didn't know this existed. But to be useful for Markdown (which I'd also like very much), it would need options for formatting emph and strong regexs (currently '/' and '*' in org-mode, would need to be '*' and '**' for Markdown) and also links. I'm not sure what :body-tags-{prefix,suffix} actually do, but that sounds promising. Link formatting would need to be added, but it seems like adding a :body-link-address and :body-link-description would pretty much take care of it. If this isn't currently doable without patching org-export-generic.el, I can take a stab at providing such a patch (unless Alex was hankering for a weekend project :)). Eric >> Thanks, Alex Henning >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >>