From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: problem with markdown exporter Date: Thu, 21 Aug 2014 11:09:45 +0200 Message-ID: <87d2bufbty.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOMx-00046M-7i for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 05:09:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKOMn-0003hw-3K for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 05:09:19 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:37213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOMm-0003hg-U6 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 05:09:09 -0400 In-Reply-To: (Ken Mankoff's message of "Wed, 20 Aug 2014 14:03:05 -0400") 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: Ken Mankoff Cc: Org-Mode Mailing List Hello, Ken Mankoff writes: > I've turn on Markdown exporting with (require 'ox-md). Citations aren't > being exported properly, so I'm trying to customize it. I have the > following setup: > > (org-add-link-type > "textcite" (lambda (key) (org-open-file cby-references-file t nil key)) > (lambda (path desc format) > (cond > ((eq format 'latex) (format "\\textcite{%s}" path)) > ((eq format 'md) (format "[@%s]" path)) > ((eq format 'odt) (format "%s" desc)) > ((eq format 'html) (format "%s" path)) > ))) > > Which works for latex, odt, and hml. But it doesn't appear that the > format string is ever being set to 'md, and so the [[cite:foo][Foo, > YYYY]] in my org file isn't getting converted to [@foo]. This should be fixed. Thank you for reporting it. Regards, -- Nicolas Goaziou